Server browser connect not working for dedicated server

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Server browser connect not working for dedicated server

Post by cpy »

I'm posting it here since nobody looks at dedicated server posts and I actually might get help here, since it is technical problem.

I have server behind NAT, anyone can connect if they use direct connection to my IP (from internet), but trying to connect to server from LAN or internet via server browser does not work, but direct connection works perfectly from internet and LAN.

So if they try to connect to my server listed as CPY Industrial Revolution, it's unreachable, but direct connect to cpy.zapto.org works I think you have something broken in public server browser.

Loewchen
Global Moderator
Global Moderator
Posts: 8894
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Server browser connect not working for dedicated server

Post by Loewchen »

Post corresponding logs of server and client after a session with the issue.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

Ok, any help with logs location for dedicated server? Oh I see your signature. :)

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

Here are the logs:
Attachments
factorio-current-server.log
(60.11 KiB) Downloaded 92 times
factorio-current-client.log
(67.14 KiB) Downloaded 105 times

Zavian
Smart Inserter
Smart Inserter
Posts: 1646
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Server browser connect not working for dedicated server

Post by Zavian »

So I just tried connecting to your server, both from the server browser (which failed; the server browser also failed to establish a ping) and connecting directly to cpy.zapto.org (which managed to connect, but I don't know the password; that doesn't matter for this test; I think the logs have enough data). From my log

Code: Select all

 273.147 Joining game IP ADDR:({95.170.228.66:1453})
 273.147 Info UDPSocket.cpp:33: Opening socket
 273.148 Info ClientMultiplayerManager.cpp:592: UpdateTick(4294967295) changing state from(Ready) to(Connecting)
 283.160 Error ClientMultiplayerManager.cpp:101: MultiplayerManager failed: multiplayer.not-received-connection-accept-reply
 283.160 Info ClientMultiplayerManager.cpp:592: UpdateTick(4294967295) changing state from(Connecting) to(InitializationFailed)
 378.429 Info ClientMultiplayerManager.cpp:207: Quitting multiplayer connection.
 378.429 Info ClientMultiplayerManager.cpp:592: UpdateTick(4294967295) changing state from(InitializationFailed) to(Disconnected)
 378.430 Info UDPSocket.cpp:218: Closing socket
 378.430 Info UDPSocket.cpp:248: Socket closed
 398.430 Joining game IP ADDR:({95.170.228.66:34197})
 398.431 Info UDPSocket.cpp:33: Opening socket
 398.431 Info ClientMultiplayerManager.cpp:592: UpdateTick(4294967295) changing state from(Ready) to(Connecting)
 399.159 Connection refused
 399.159 Info ClientMultiplayerManager.cpp:207: Quitting multiplayer connection.
 399.159 Info ClientMultiplayerManager.cpp:592: UpdateTick(4294967295) changing state from(Connecting) to(Disconnected)
 399.164 Info UDPSocket.cpp:218: Closing socket
 399.164 Info UDPSocket.cpp:248: Socket closed
 
Note the different ports. The server browser gave me 1453 (which failed), and direct connect (without me specifying a port) gave me 34197. Could be a network configuration/routing/port forwarding issue. (Could also be caused by two servers running on the same external ip, but only one being externally reachable).

Also reminds me of viewtopic.php?f=7&t=62792#p443290 and viewtopic.php?f=49&t=73540&p=444126 .

I suggest checking what port the server is actually running on, and your routers port forwarding rules.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

Ok why is the server browser getting different port? I want to set everything manually.

Zavian
Smart Inserter
Smart Inserter
Posts: 1646
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Server browser connect not working for dedicated server

Post by Zavian »

One possible explanation. Your server is running on 34197, but your router is doing NAT on the outbound connections to the pingpong servers, and translating that to 1453, despite you having setup port forwarding for port 34197. The fix would be convincing your router not to do that.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

I don't think router is doing this.
ServerRouter.cpp is doing this crap! (factorio code?)
My server is in DMZ.

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2579
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Server browser connect not working for dedicated server

Post by BlueTemplar »

I'm curious : is it possible for you to remove NAT and force IPv6 ? No port-forwarding, no problem ?
BobDiggity (mod-scenario-pack)

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

I can try plugging server directly to internet. I think that their stupid ass nat punch service is broken and unable to define static port is doing this.
I don't need UDP NAT punch, i need a way to set everything myself.

When i block pingpong*.factorio.com I get correct port but wrong IP in game list 10.30.49.248 (which is none of my internal IPs or anything else).

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2579
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Server browser connect not working for dedicated server

Post by BlueTemplar »

Just don't forget to check that your firewall is up to date and working !
NAT wasn't designed with security in mind, but AFAIK it does help somewhat ?
BobDiggity (mod-scenario-pack)

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Server browser connect not working for dedicated server

Post by cpy »

I don't use firewall, everything that does not use stupid ass udp hole punching and can be configured myself and not rely on god damn servers somewhere else works!
My webserver works, my ftp server works, mumble server works. Everything that I can set manually myself works.

I guess I need another router. Stupid Chinese Tenda crap. Never again.

Post Reply

Return to “Technical Help”