Rcon not working as expected on Linux

This subforum contains all the issues which we already resolved.
Post Reply
Greaka
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Feb 07, 2021 4:32 pm
Contact:

Rcon not working as expected on Linux

Post 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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13342
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Rcon not working as expected on Linux

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13342
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Rcon not working as expected on Linux

Post by Rseding91 »

Can you post a log file that shows it failing to use the correct port?
If you want to get ahold of me I'm almost always on Discord.

Greaka
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Feb 07, 2021 4:32 pm
Contact:

Re: Rcon not working as expected on Linux

Post 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.

Greaka
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Feb 07, 2021 4:32 pm
Contact:

Re: Rcon not working as expected on Linux

Post 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.

Post Reply

Return to “Resolved Problems and Bugs”