Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Become an admin and type commands

Admin rights go through the server-adminlist.json file, placed in the same folder as the factorio-current.log log. With the installation from the guide create a Factorio dedicated server, that is /opt/factorio. The file holds the list of the admins' factorio.com usernames:

[ "your_username", "a_friends_username" ]
sudo -u factorio nano /opt/factorio/server-adminlist.json
sudo systemctl restart factorio

Once you are an admin, you manage the other rights from the game:

  • /promote username: makes a player an admin. The official wiki notes that the server-adminlist.json file is created if it does not exist yet;
  • /demote username: removes that role;
  • /admins: prints the list of admins;
  • /admin: opens the player management window;
  • /permissions: opens the permission groups window, to limit what each group of players is allowed to do.

Where to type commands. The in-game console opens with the ` key, the one left of 1 and above Tab (it can be changed in the key settings). Text without a leading / goes to team chat; text starting with / is a command. The Tab key completes commands and usernames, and /help lists the available commands. Two commands only work in the server's own console: /save name and /quit. On a VPS where the server runs as a systemd service, that console is not reachable: use the game or RCON (see below).

02

Managing players

The moderation commands, reserved for admins:

  • /kick username reason: kicks the player, who can come back;
  • /ban username reason: bans the player;
  • /unban username: lifts the ban;
  • /mute username and /unmute username: takes away or gives back the right to talk in chat;
  • /purge username: clears all of that player's messages from the chat;
  • /open username: opens another player's inventory.

The information commands: /bans lists banned players, /mutes the muted ones, and /players every player in the game. /players online (or /p o) shows only those connected, /players count only their number.

/players online
/kick xTROLLx Throwing grenades in base
/ban xTROLLx Repeat offence
/bans
/unban xTROLLx

The whitelist. /whitelist add username and /whitelist remove username add or remove a player, /whitelist get prints the list and /whitelist clear empties it. Only listed players can then join; an empty list lets everyone in. /banlist works the same way for bans (add, remove, get, clear). The wiki also lists the launch options --use-server-whitelist (whether to use the whitelist) and --server-whitelist, --server-banlist, --server-adminlist, which set the location of each file.

Players are identified by their factorio.com username. Keep require_user_verification set to true in server-settings.json: the server then only accepts valid factorio.com accounts.

03

Game settings and saves

/config opens the server configuration window. On the command line, /config get option reads a setting and /config set option value changes it, without a restart:

/config get max-players
/config set max-players 16
/config set password a-password
/config set afk-auto-kick 30
/config set autosave-interval 10

The options listed by the official wiki: afk-auto-kick, allow-commands, allow-debug-settings, autosave-interval, autosave-only-on-server, ignore-player-limit-for-returning-players, max-players, max-upload-speed, only-admins-can-pause, password, require-user-verification, visibility-lan and visibility-public. afk-auto-kick and autosave-interval are in minutes.

For a lasting change, also write it in server-settings.json: that is the file the service reads at every start, with its own option names (max_players, afk_autokick_interval, only_admins_can_pause_the_game…).

Saves. /server-save saves the game on the server, from inside the game; it is the right habit before an update or a mod change. The server also saves when it stops cleanly (sudo systemctl stop factorio, with the SIGINT signal set in the service) and makes its autosaves according to autosave_interval. For a full copy off the VPS, follow the method in the guide create a Factorio dedicated server, and schedule it with a scheduled task.

A few handy commands for every player: /version (game version), /seed (map seed), /time (map age) and /evolution (enemy evolution).

04

Remote admin with RCON

The Factorio server speaks the Source RCON protocol, over TCP. It is enabled at launch with two options: --rcon-port (or --rcon-bind address:port, which also sets the listening address) and --rcon-password. The safest choice is to listen on the machine itself only. In /etc/systemd/system/factorio.service, extend the ExecStart line:

ExecStart=/opt/factorio/bin/x64/factorio --start-server-load-latest --server-settings /opt/factorio/server-settings.json --port 34197 --rcon-bind 127.0.0.1:27015 --rcon-password "a-long-password"
sudo systemctl daemon-reload
sudo systemctl restart factorio

Port 27015 is only an example: pick a free TCP port. You then need an RCON client compatible with the Source protocol, for example the open-source rcon-cli tool (the gorcon project on GitHub, a third-party tool). From the VPS, over SSH:

rcon -a 127.0.0.1:27015 -p "a-long-password" "/players online"
rcon -a 127.0.0.1:27015 -p "a-long-password" "/server-save"

From your computer, use an SSH tunnel rather than opening the port: ssh -L 27015:127.0.0.1:27015 user@vps-address, then point the client at 127.0.0.1:27015 locally. The guide connecting to a VPS over SSH explains the connection. If you still open the RCON port to the world, choose a long password and restrict access to your IP address in the firewall (see securing a Linux VPS). The only port to open for players remains 34197 UDP (see game server ports).

05

Lua commands (/c) and achievements

Factorio keeps scripting and cheat commands in a separate category. They run Lua code in the game:

  • /c or /command: runs a Lua command;
  • /sc or /silent-command: the same, without printing it to the console;
  • /mc or /measured-command: runs it and measures how long it took;
  • /cheat (all technologies and free crafting) and /editor (map editor) belong to the same family.
/c game.player.print(1234*5678)

The key point: according to the official wiki, achievements are permanently disabled for the save as soon as a script command is used. The multiplayer commands from the previous sections (/kick, /ban, /config, /server-save…) are not affected. If your players care about achievements, copy the save before any Lua command, or do not type any.

The allow_commands option in server-settings.json decides who can use them: true (everyone), false (no one) or admins-only, the value in the example file. Keep admins-only on a public server. A command typed with /c is visible to all players; /sc avoids printing it.

Other games follow a similar or very different logic: see Valheim admin commands and, for another RCON example, Counter-Strike 2 admin commands.

06

On CloudFive

CloudFive has no ready-made Factorio plan: the server is installed on a VPS, and you run it as described in this guide. The Ryzen VPS, from €5.99 per month, suits it well:

  • an AMD Ryzen 9 9950X with DDR5 memory and NVMe storage: the factory simulation depends mostly on the speed of one core;
  • a Linux container (LXC) with root access and a dedicated IPv4 address;
  • basic DDoS protection included (see protecting a game server against DDoS).

Servers are in France, billed monthly with no commitment, with support in French 7 days a week through tickets and on Discord. To choose the VPS size, see which VPS for a game server.

07

Frequently asked questions

How do I become an admin on a Factorio server?

Create the server-adminlist.json file in the same folder as factorio-current.log, with your factorio.com usernames in square brackets, then restart the server. An admin can then appoint others in game with /promote followed by the username, and remove that role with /demote.

How do I ban a player on a Factorio server?

Type /ban followed by the username and a reason in the in-game console, opened with the key left of 1. /bans shows the list of banned players and /unban followed by the username lifts the ban. For a simple kick, use /kick.

How do I enable RCON on a Factorio server?

Add --rcon-port followed by a port, or --rcon-bind 127.0.0.1:port to listen locally only, and --rcon-password followed by a password to the launch command. Then connect with a client compatible with the Source RCON protocol, preferably through an SSH tunnel.

Do /c commands disable achievements in Factorio?

Yes. According to the official wiki, any script command such as /c, /sc or /mc permanently disables achievements on the save. Multiplayer commands such as /kick, /ban, /config or /server-save do not affect them.

How do I save a Factorio server with a command?

An admin types /server-save in game to save the game on the server. In the server console, /save followed by a name creates a named save, and /quit stops the server cleanly. The server also saves the game when it shuts down normally.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay