Need to change NAT settings after restart of 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.
Gornil
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Nov 19, 2024 3:49 pm
Contact:

Need to change NAT settings after restart of server

Post by Gornil »

Hi,

I've setup a headless server for me and some friends. When a new patch for Factorio is released I need to restart my docker container to get the new Factorio server. And sometimes I get a new external port I need to forward through my router. I need to go into the log file and look for the port it confirms on and add that to the NAT. Is there a way I can set this port permanently?

5.774 Info ServerRouter.cpp:547: Own address is IP ADDR:({xxx.xxx.xxx.xxx:54371}) (confirmed by pingpong1)
5.791 Info ServerRouter.cpp:547: Own address is IP ADDR:({xxx.xxx.xxx.xxx:54371}) (confirmed by pingpong3)
5.974 Info ServerRouter.cpp:547: Own address is IP ADDR:({xxx.xxx.xxx.xxx:54371}) (confirmed by pingpong4)

NB: I'm running Factorio Server manager and running server viewable in the Factorio MP server list.
Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Re: Need to change NAT settings after restart of server

Post by Atraps003 »

Factorio default port is udp 34197
Post Reply

Return to “Technical Help”