Page 1 of 1
Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 5:52 am
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.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 9:34 am
by Loewchen
Post corresponding logs of server and client after a session with the issue.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 11:36 am
by cpy
Ok, any help with logs location for dedicated server? Oh I see your signature.

Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 12:47 pm
by cpy
Here are the logs:
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 2:06 pm
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.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 2:49 pm
by cpy
Ok why is the server browser getting different port? I want to set everything manually.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 2:56 pm
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.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 3:02 pm
by cpy
I don't think router is doing this.
ServerRouter.cpp is doing this crap! (factorio code?)
My server is in DMZ.
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 3:08 pm
by BlueTemplar
I'm curious : is it possible for you to remove NAT and force IPv6 ? No port-forwarding, no problem ?
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 3:12 pm
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).
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 3:22 pm
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 ?
Re: Server browser connect not working for dedicated server
Posted: Mon Sep 23, 2019 3:25 pm
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.