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

RCON port cannot be exposed through docker

Open egladil opened this issue 4 years ago • 3 comments

In order to expose a port through docker it needs to be known before starting the container. But since the RCON port is always randomized this is not possible. It would be useful to have a setting of some kind for forcing the RCON port to a specific port number

egladil avatar Jan 26 '21 16:01 egladil

Good idea we should have an optional flag to specify the RCON port.

mroote avatar Jan 26 '21 16:01 mroote

Yes i need this to use the factorio chat bot. I need to set the rcon port. https://github.com/Corbris/FactorioChatBot

daggers953 avatar Mar 23 '21 02:03 daggers953

Hi @mroote, I think that issue should be changed to bug as rcon_port parameter is ignored and randomized every time config is loaded FactorioRconPort is assigned random value (config.go#L176) every time loadServerConfig is called

https://github.com/OpenFactorioServerManager/factorio-server-manager/blob/1d42f87e55aa246001e9b44e0caa5ec8456407ce/src/bootstrap/config.go#L176

Mirdinus avatar Apr 17 '21 15:04 Mirdinus