Page 1 of 1

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

Posted: Sat Mar 01, 2025 8:50 pm
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

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

Posted: Sun Mar 02, 2025 10:07 am
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.

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

Posted: Sun Mar 02, 2025 7:15 pm
by schwaffen
Nothing's wrong with the firewall configuration as I have already set it up to default port on UDP transmission.

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

Posted: Sun Mar 02, 2025 10:08 pm
by pioruns
Good to hear you are sure it's not the server's firewall.
Well then, what's the result of ssh tunelling?

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

Posted: Mon Mar 03, 2025 8:03 pm
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.