Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve IP and port binding when starting factorio game server #402

Open
Squelch opened this issue Jul 15, 2024 · 5 comments
Open

Preserve IP and port binding when starting factorio game server #402

Squelch opened this issue Jul 15, 2024 · 5 comments
Milestone

Comments

@Squelch
Copy link

Squelch commented Jul 15, 2024

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.

@knoxfighter knoxfighter added this to the 0.11 milestone Jul 15, 2024
@Mattie112
Copy link
Contributor

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)

@Squelch
Copy link
Author

Squelch commented Jul 15, 2024

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.

@knoxfighter
Copy link
Member

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.

@Mattie112
Copy link
Contributor

Yes that seems the best option :)

@MartijnvanLeth
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants