Hello forum users.
I wrote a small web service which allows to my friends to turn on the factorio host (wol) and start factorio server on it.
For further development of this service I whant to get server information on local network. Specifically I'am interested in getting number of online players.
I know about matchmaking API (https://wiki.factorio.com/Matchmaking_API), but it requires authentication, and i think that spamming requests on a timer to multiplayer.factorio.com is not very good idea.
So is it possible to get server information directly from the server?
Request info from headless server via local network
Request info from headless server via local network
Last edited by Edgar_VL on Fri Jun 03, 2022 2:38 pm, edited 1 time in total.
Re: Request info from headless server via local network
Yes, you can use RCON locally to talk to the server and ask for the player count that way. See the wiki about how.
If you want to get ahold of me I'm almost always on Discord.
Re: Request info from headless server via local network
Thanks, never heard about RCON before.
I've got new question about rcon configuring. It's working only if i set arguments to the factorio executable, but also there ara same parameters at /factorio/config/config.ini
I've set these options like this:
But this does not work, what I'm doing wrong?
I've got new question about rcon configuring. It's working only if i set arguments to the factorio executable, but also there ara same parameters at /factorio/config/config.ini
I've set these options like this:
Code: Select all
; Socket to host RCON on when lauching MP server from the menu.
; local-rcon-socket=0.0.0.0:25575
; Password for RCON when launching MP server from the menu.
; local-rcon-password=strongPass
-
- Smart Inserter
- Posts: 2768
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: Request info from headless server via local network
Try this:Edgar_VL wrote: Sat Jun 04, 2022 12:50 pm Thanks, never heard about RCON before.
I've got new question about rcon configuring. It's working only if i set arguments to the factorio executable, but also there ara same parameters at /factorio/config/config.ini
I've set these options like this:But this does not work, what I'm doing wrong?Code: Select all
; Socket to host RCON on when lauching MP server from the menu. ; local-rcon-socket=0.0.0.0:25575 ; Password for RCON when launching MP server from the menu. ; local-rcon-password=strongPass
Code: Select all
; Socket to host RCON on when lauching MP server from the menu.
local-rcon-socket=0.0.0.0:25575
; Password for RCON when launching MP server from the menu.
local-rcon-password=strongPass
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
Re: Request info from headless server via local network
ThasnksFuryoftheStars wrote: Sat Jun 04, 2022 2:39 pm
Try this:Code: Select all
; Socket to host RCON on when lauching MP server from the menu. local-rcon-socket=0.0.0.0:25575 ; Password for RCON when launching MP server from the menu. local-rcon-password=strongPass
But this doesn't work either.
Re: Request info from headless server via local network
The comments for the options say "when launching MP server from the menu". Are you actually doing that? If you are starting the server via command line instead, check the output from --help, it should mention similar options.