Page 1 of 1

[1.1.14] Connection attempt to incompatible version not well reported

Posted: Sat Jan 23, 2021 7:13 pm
by damerell
I was attempting to make a direct (via IP and port) connection to a friend's Factorio server.

It attempts to connect and finishes with a notice: "Could not establish network communication with server."

After a bit of fiddling with tcpdump (the server runs on a nonconventional port) we asked the most basic question; what version of Factorio? The server's on 1.0 (because of the way Steam makes the development versions look like dodgy betas); I'm on 1.1.14 (because I bought direct and I know it's rock solid).

I would expect that the notice tells me explicitly that the versions are incompatible. This would make it much easier to recognise problems of this kind.

http://www.chiark.greenend.org.uk/~dame ... urrent.log is the logfile, in case I have _another_ problem.

I include the tcpdump output; "mandala" is the machine making the connection attempt, and the tcpdump is running on the machine that has the firewall/NAT arrangement.

Code: Select all

usagi:/etc/init.d#  tcpdump -i eth1 port 34198
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
19:11:39.638587 IP mandala.sakura.vpn.ucam.org.56169 > 6.40.9.102.34198: UDP, length 12
19:11:39.685942 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:40.139283 IP mandala.sakura.vpn.ucam.org.56169 > 6.40.9.102.34198: UDP, length 12
19:11:40.198196 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:40.198237 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 9
19:11:40.711281 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:41.256125 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:41.775167 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:42.218741 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:42.730719 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:43.237709 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:43.740628 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
19:11:44.251623 IP 6.40.9.102.34198 > mandala.sakura.vpn.ucam.org.56169: UDP, length 21
ET elide the exact IP address...

Re: [1.1.14] Connection attempt to incompatible version not well reported

Posted: Sat Jan 23, 2021 8:27 pm
by kovarex
Hello, the game normally gives error related to invalid map version, or even specifics about missing mods or different mod versions.

In your case, the error is something more tricky, as the log says, there is some invalid data in a packet.

Code: Select all

60.084 Info ClientMultiplayerManager.cpp:591: UpdateTick(4294967295) changing state from(Ready) to(Connecting)
60.145 Info UnparsedNetworkMessage.cpp:91: Invalid packet (type ConnectionRequestReply) received from IP ADDR:({6.40.9.102:34198}): garbage after message
60.145 Info UnparsedNetworkMessage.cpp:102: Message data: 03 2d 80 01 00 00 00 00 01 00 00 69 d6 c6 93 fb cb 60 d6 5c 7d
I would suggest that something in the network was weird (maybe some router or something changing the packet or something?)
Could you connect with the correct version after all?
I'm moving it to pending until more info is gathered at least.

Re: [1.1.14] Connection attempt to incompatible version not well reported

Posted: Sat Jan 23, 2021 8:49 pm
by Xorimuth

Re: [1.1.14] Connection attempt to incompatible version not well reported

Posted: Sat Jan 23, 2021 10:07 pm
by kovarex
Xorimuth wrote: Sat Jan 23, 2021 8:49 pm Duplicate of viewtopic.php?f=48&t=93488?
Oh, ok this explains it, I had no idea we changed something around this network handshake in the past years, moving to won't fix, since it is kind of a temporary problem.

Re: [1.1.14] Connection attempt to incompatible version not well reported

Posted: Sun Feb 14, 2021 4:16 am
by damerell
Thank you.