Page 1 of 1

[0.16.51] Unable to connect form internet (SOLVED)

Posted: Tue Jan 29, 2019 7:23 pm
by afr33sl4ve
Hi guys, I'm running a dedicated server on Ubuntu 18.04.1, and I'm having a little bit of trouble with it. If I connect LAN, it's fine. If I try to connect internet, I get no connection.

Here's all my troubleshooting and setup so far;

Code: Select all

ufw status numbered

     To                         Action      From
     --                         ------      ----
[12] 25575                      ALLOW IN    Anywhere
[13] 25565                      ALLOW IN    Anywhere
[14] 34197                      ALLOW IN    Anywhere
[17] 34197                      ALLOW OUT   Anywhere                   (out)
[29] 25575 (v6)                 ALLOW IN    Anywhere (v6)
[30] 25565 (v6)                 ALLOW IN    Anywhere (v6)
[31] 34197 (v6)                 ALLOW IN    Anywhere (v6)
[33] 34197 (v6)                 ALLOW OUT   Anywhere (v6)              (out)
https://pastebin.com/fy8FHxfz iptables -nvL output

pfSense states when checking from canyouseeme org.

Code: Select all

WAN     tcp     52.202.215.126:41411 -> 192.168.2.102:34197 (EXT IP:34197)  TIME_WAIT:TIME_WAIT     1 / 1   60 B / 40 B
tail -f /var/log/ufw.log has absolutely NOTHING on port 34197.

And, finally, here's the output of the console;

Code: Select all

2.788 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
2.789 Hosting game at IP ADDR:({0.0.0.0:34197})
2.789 Info ServerMultiplayerManager.cpp:699: mapTick(2268001) changing state from(CreatingGame) to(InGame)
2.789 Info ServerRouter.cpp:596: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
3.010 Info UDPSocket.cpp:39: Opening socket for broadcast
3.182 Warning ServerRouter.cpp:487: Received own adddress message reply with conflicting address (got IP ADDR:({EXT IP:2327}), expected IP ADDR:({EXT IP:9898}))
3.182 Warning ServerMultiplayerManager.cpp:592: Determining own address has failed. Best guess: IP ADDR:({EXT IP:9898})
ufw show listening doesn't show anything, because it's now on the port that it needs to be.

This is super frustrating, and I'm about ready to give up on Factorio multiplayer.

Re: [0.16.51] Unable to connect form internet

Posted: Tue Jan 29, 2019 7:58 pm
by Eiermann
Can you access your minecraft server over the internet? What does "netstat -tulpen" say?

Re: [0.16.51] Unable to connect form internet

Posted: Tue Jan 29, 2019 8:01 pm
by afr33sl4ve
It's solved. I found the fix at viewtopic.php?t=47110

I find it very strange that we have to punch OUT of the NAT.