Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

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.
schwaffen
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 01, 2025 4:33 pm
Contact:

Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

Post by schwaffen »

Hello Factorian fellows!
As the subject says, I, as a client, can't connect to my headless server which is running on my VPS.

Better to put both server and client logs to help troubleshooting the problem.
Both server and client version is 2.0.32 and default port 34197 on UDP transmission is open on server firewall.
Server IP address been swapped with "X.X.X.X" in logs for security purpose.

Based on my experiments, I could easily join a server created by Factorio Zone hosting website with no headaches, so the trouble must be on server side! Something is blocking packets traffic on server, but I don't know what!

Any help is appreciated.

Server Logs: https://pastebin.com/aVyxg3dF
Client Logs: https://pastebin.com/ATqW11MH
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 154
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

Post by pioruns »

Probably it's the firewall on server side blocking the communication?
Try opening that port via SSH tunnel to the client.
Once the open tunnel is established, connect to localhost:34197 on the client.
schwaffen
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 01, 2025 4:33 pm
Contact:

Re: Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

Post by schwaffen »

Nothing's wrong with the firewall configuration as I have already set it up to default port on UDP transmission.
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 154
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

Post by pioruns »

Good to hear you are sure it's not the server's firewall.
Well then, what's the result of ssh tunelling?
adam_bise
Filter Inserter
Filter Inserter
Posts: 581
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Factorio headless server is not responding to clients trying to direct connect to the server by IP and port

Post by adam_bise »

Agreeing with pioruns about trying another TCP listener like SSH. Also you might check ufw status or iptables -L -v -n

Not sure if you can get a client on the same subnet, but it would be helpful to see if local clients can connect.
Post Reply

Return to “Technical Help”