Server problem : can't connect from internet

Moderator: NADEO

User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: Server problem : can't connect from internet

Post by Electron »

TMarc wrote:Electron: how did you check?
Using TM Server Test, the tool to test port forwarding recommended above and by asking someone to join my server.
use netstat -na to see all open ports on your PC, and a internet scanner website to see the open ports of your router.
This is the ManiaPlanet related output:

Code: Select all

  Proto  Lokale Adresse         Remoteadresse          Status
  TCP    0.0.0.0:2352           0.0.0.0:0              ABHÖREN
  TCP    0.0.0.0:3452           0.0.0.0:0              ABHÖREN
  TCP    127.0.0.1:5002         0.0.0.0:0              ABHÖREN
  UDP    0.0.0.0:2352           *:*
Is perhaps a ghost instance of ManiaPlanet running in the background -> eliminate it with the Task manager.
Or you are using a tool that uses those ports at the moment.
No, after closing my server, the above entries aren't in the list anymore.

If I change the server port from 2352 to 3451 in the dedicated_cfg.txt, everything is OK. Something blocks my port range 2350-2352.

I use a Speedport W 723V (Type A) router and I forwarded these port ranges for the dedicated server:
TCP: 2350-2352,3450-3452
UDP: 2350-2352

The configuration of my personal firewall looks good (I deactivated it also for the tests).

PS: I use port 2350 for the game client, 2351 for my TM1 server and 2352 for my MP server.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Server problem : can't connect from internet

Post by TMarc »

Is it all on the same machine? Is the firewall is configured to allow ManiaPlanet.exe, but what about ManiaPlanetServer.exe? The Windows firewall only shows "ManiaPlanet" in the first column "Name", you have to look at the colume "Programm" (make it larger to see which executable is actually configured).

The thing is, if you start the game first, it will grab the default ports (unless you have configured them differently in the advanced settings), so the server launched afterwards is forced to use other ports then.
Now if players try to connect to your network, all ports (default and new ports) will be visible for them,
possibly their client tries connects to the your game instance instead of the dedicated server instance.

I just tried this:
- run dedicated server alone, using default configuration, and it uses 2350, 3450. Closed the server, ports are not used.
- run ManiaPlanet alone, it uses the same ports as the dedicated was using just before, as it can also be a server. Closed the game, ports are not used.
- Started the dedicated server (ports 2350, 3450) and then also the game (automatically used ports 2351 and 3451)
Closed both, ports are free.
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: Server problem : can't connect from internet

Post by Electron »

Now it works. It was a problem with my router.

I changed the port forwarding from "2350-2352,3450-3452" to "3450-3452,2350-2352" and it works. After this I changed it back to "2350-2352,3450-3452" and than this works too...
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Server problem : can't connect from internet

Post by TMarc »

okay, strange, but good to keep in mind. :thumbsup:
drhugs
Posts: 26
Joined: 01 May 2013, 17:39

Re: Server problem : can't connect from internet

Post by drhugs »

drhugs wrote:I dont get what i gotta do =S and when i messed up around my ipv4 in config my pc said "theres IP adress conflict with another comp running this connection", i got another pc, problem should come from here ?

I still didnt resolve my problem =(

up !
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Server problem : can't connect from internet

Post by TMarc »

sorry :oops:
Please give some details about your network configuration.

You should keep in mind that your router must forward some ports to the machine running the dedicated server, e.g. 2350 to 2359, and 3450 to 3459.
If you have a second PC which you are using as client, you need to forward ports like 2360 and 3460 to it, and also configure ManiaPlanet in the advanced network settings to use those different ports.
Of course you also need to open those ports you are forwarding in the firewalls of the router and the individual PC.
drhugs
Posts: 26
Joined: 01 May 2013, 17:39

Re: Server problem : can't connect from internet

Post by drhugs »

My router now says me all ports are closed even with firewall down =( i play on the pc hosting the servers , got ports for player & 2 servers open in config (firewall & router), configured 1 server & player ports in game settings (but still 1 serv i cant set in here =S)
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Server problem : can't connect from internet

Post by TMarc »

well, your router definitely needs to open the TM and ManiaPlanet ports, and forward them to your server PC.
And you also need to configure all ports in the servers differently, don't let just the defaults configured.

TM server: 2350, 3450
MP server: 2351, 3451
TM client application (server ports): 2352, 3452
MP client application (server ports): 2352, 3452 (I don't think you will run TM client at the same time as MP client, so the ports can be the same there)

In your router, open ports 2350,2351,3450, 3451 and forward them to the server PC IP.
You could also forward the ports 2352 and 3452 if you would use the client applications to start a local server there.

Side note: If you're already running two servers, I don't think it is a good idea to use it also as client anyways (possible cause of lags).
drhugs
Posts: 26
Joined: 01 May 2013, 17:39

Re: Server problem : can't connect from internet

Post by drhugs »

i got a really good connection (can launch battlefield 3 & trackmania without any lag on both).
My ports are 2350 ... for player, 2352 for 1st server, 2353 for 2nd server. Both already were joinable in past ='( ...

i did open again ports:
2350;3450;5000;
2352;3452;5002;
2353;3453;5003.
on router & firewall,
DHCP is active; begining at 192...10, ending at 192...50, all my ports are set on 192...10
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Server problem : can't connect from internet

Post by TMarc »

please check the usage of the ports on your server-pc with the command netstat, e.g.:
netstat -na
before, and while you're running the dedicated server applications.
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest