factorio-server-manager icon indicating copy to clipboard operation
factorio-server-manager copied to clipboard

Preserve IP and port binding when starting factorio game server

Open Squelch opened this issue 1 year ago • 5 comments

Ont he Controls page, the IP binding is set to all interfaces (0.0.0.0) by default for the factorio game server. This may have security or other unwanted affects on the host server. Whilst it is possible to enter an appropriate address on the Controls page, this is not preserved for subsequent use.

It is possible to change the defaults by editing the configuration, but this assumes a game admin has file permissions and shell access, and in the case of a docker instance, is rather convoluted.

It would be preferable if the binding and/or port used to launch factorio game server could be saved to the configuration file.

Squelch avatar Jul 15 '24 16:07 Squelch

Saving it sounds good, but the default of "0.0.0.0" seems reasonable for me. I mean it is a server after all so listening on all interfaces would be better then using a random one.

(I always listen on everything, preferably also on IPv6)

Mattie112 avatar Jul 15 '24 17:07 Mattie112

The default of 0.0.0.0 is indeed useful, but there may be instances, say a hyperthetical, multple instances of factorio server on the same host. eg a LAN only private instance and another public facing game that are isolated from each other on thier own subnets or VLANs. Specifying the IP to which these are associated simplifies setup without them fighting over the same interface.

The suggestion is simply to preserve the IP and port numbers for a particular instance of server manager when entered into the launch game fields.

Squelch avatar Jul 15 '24 18:07 Squelch

And that suggestion i will follow, i thought about that as well, when i fixed those parts. The IP and Port should be saved, but the default of 0.0.0.0 will stay.

knoxfighter avatar Jul 15 '24 18:07 knoxfighter

Yes that seems the best option :)

Mattie112 avatar Jul 15 '24 18:07 Mattie112

I'd love to see this option added as I'm currently running 3 servers on one machine with the only difference being the port.

If FMS3 get's a restart and the port goes back to default they will connect to instance 1. Password will block them but it would be wonderful to get some persistence on the port at least.

Sylentic avatar Oct 21 '24 16:10 Sylentic