Page 1 of 1

Rcon not working as expected on Linux

Posted: Mon Sep 09, 2024 8:43 pm
by Greaka
Hey there,

The wiki states that you can use --bind-rcon <addr>:<port> to specify the address and port to use
However, it seems that the port part is completely ignored and it always uses 34865
same goes for --rcon-port, which exists in factorio symbols but seems to be ignored too
How does that work if I want to start multiple instances?
the --rcon-bind works on windows, but not on linux btw

Re: Rcon not working as expected on Linux

Posted: Mon Sep 09, 2024 8:54 pm
by Rseding91
I cannot reproduce any issue. Passing

Code: Select all

--rcon-bind 127.0.0.1:9999 --rcon-password password
and it works perfectly.

Re: Rcon not working as expected on Linux

Posted: Mon Sep 09, 2024 8:59 pm
by Rseding91
Can you post a log file that shows it failing to use the correct port?

Re: Rcon not working as expected on Linux

Posted: Mon Sep 09, 2024 9:32 pm
by Greaka
I think I can confirm that it does in fact work. There seems to be a race condition in my code around reading the output logs, resulting in reading the old log. Sorry to bother you about this. Additionally, there was a lock on the log not cleaned up properly at some point, which caused the 34865 port to persist in my testing.

Re: Rcon not working as expected on Linux

Posted: Mon Sep 09, 2024 9:39 pm
by Greaka
Tangentially, it would be helpful if there was a way to specify the output log instead of relying on -current.log. There is no bug as it seems though. Sorry about this again.