Unable to connect to 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.
Opalium
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Dec 31, 2017 3:04 pm
Contact:

Unable to connect to dedicated server

Post by Opalium »

Heya.

I ran into an issue while trying to host a dedicated Factorio server on a VPS I own. It's a VPS running Ubuntu 14.04 with all the ports open.
I downloaded the factorio-init script and used it to set up the server, edited the config and ran the server through the init script. From looking at the log, it seems like everything is fine:

Code: Select all

   1.660 Checksum for script /home/factorio/factorio/factorio/temp/currently-playing/control.lua: 2309010108
   1.662 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
   1.662 Hosting game at 0.0.0.0:34197
   1.662 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2
   2.335 Info HttpSharedState.cpp:127: Status code: 200
   2.335 Info AuthServerConnector.cpp:109: Obtained serverPadlock for serverHash (<HASH>) from the auth server.
   2.335 Info ServerMultiplayerManager.cpp:696: mapTick(53155) changing state from(CreatingGame) to(InGame)
   2.335 Info ServerRouter.cpp:580: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
   2.353 Info UDPSocket.cpp:39: Opening socket for broadcast
   2.391 Info ServerRouter.cpp:475: Own address is <MY VPS IP>:34197
   3.046 Info ServerMultiplayerManager.cpp:625: Matching server connection resumed
However, when I try to connect to the server, it doesn't seem to work:
Image
The address I am trying to connect to is <MY VPS IP>:34197.

I checked the ports on the VPS to make sure nothing is blocked but everything is open. I tried changing the port to different numbers, including ports I know for sure are working, but that also didn't help. The server log doesn't show any error at all either.

Any idea what may be causing this? I really can't figure this one out.
~Opalium
Opalium
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Dec 31, 2017 3:04 pm
Contact:

Re: Unable to connect to dedicated server

Post by Opalium »

After quite some tinkering, I managed to solve the issue. It seems factorio-init downloads an invalid/not working copy of the headless server. I tried to manually download and set it up from the website and it worked like a charm on the first try.
Hope this helps anyone who encounters something similar!
Post Reply

Return to “Technical Help”