ForgeWorld Gaming

Hosting guide

Factorio admin: whitelist, ban and RCON flags

Factorio server admin: /promote, /demote, /kick, /ban, /unban, /whitelist, and the --server-whitelist, --server-banlist, --server-adminlist and RCON flags.

Updated 11 October 2026

See available Factorio plans

Two halves: console commands and start-up flags

The Console page opens by describing the console as "Factorio's in-game command-line interface," and sorts its commands into three types: normal ones that display information, multiplayer ones for "Message filtering, banning users, etc.," and scripting or cheat commands. Everything an admin needs for people management sits in the multiplayer group. The Command line parameters page is the other half: it lists the options that "set settings in the command line before the game launches," which it calls "useful mainly for advanced users or server hosts." The file paths for your whitelist, banlist and adminlist are set there, and so is RCON.

Using the console

The Console page says the display "can be toggled with the GRAVE key (`)," the key left of the 1 key, and that you can rebind it under Settings menu, Controls, Toggle chat (and Lua console). With the console open, "type your message or command and hit Return to send it." Input that does not start with a slash is chat: "Console input that does not start with / is shown as a chat message to your team." So admin commands are typed with the leading slash exactly as listed below. One more default worth knowing before you ban someone: "by default, all executed commands are made visible to all users."

The page documents the console from the point of view of a player at the game. It does not describe how a headless server process takes typed commands, so this guide does not either.

The admin commands

These are the multiplayer-table rows for managing who is an admin, who is kept out and who may join, with the syntax, example and description as the Console page prints them:

CommandWhat the Console page saysAdmin only column
/promote <player>"Promotes the player to admin." Example: /promote AzureDiamondYes
/demote <player>"Demotes the player from admin." Example: /demote AzureDiamondYes
/admins"Prints a list of game admins."No
/admin"Opens the player management GUI."Yes
/kick <player> <reason>"Kicks the specified player." Example: /kick xTROLLx Throwing grenades in baseYes
/ban <player> <reason>"Bans the specified player." Example: /ban xTROLLx Throwing grenades in baseYes
/unban <player>"Unbans the specified player." Example: /unban xTROLLxYes
/bans"Prints a list of banned players."No
/banlist <add/remove/get/clear> <player>"Adds or removes a player from the banlist. Same as /ban or /unban." Example: /banlist getNo
/whitelist <add/remove/get/clear> [player]See the next section. Example: /whitelist getNo

Two readings of that table. First, the Admin only column is reproduced as the page prints it: Yes for promote, demote, kick, ban and unban, and No for the list-printing commands and for /banlist and /whitelist. This guide draws no conclusion from that beyond what the table says. Second, the /kick and /ban syntax is printed with a reason after the player name, and the page's examples both carry one; the page does not say more about how the reason is used.

The whitelist command

The page describes /whitelist in one sentence: "Adds or removes a player from the whitelist, where only whitelisted players can join the game." The four actions it names are add, remove, get and clear, and the player argument is optional: "Enter nothing for 'player' when using 'get' to print a list of all whitelisted players." It also states what an empty list means: "An empty whitelist disables the whitelist functionality allowing anyone to join."

That last sentence matters for clear: after you clear the list, the page's own wording is that anyone can join, so run it only when you mean to open the server up. The Console page lists no enable or disable action for /whitelist, and this guide does not invent one; the switch that the documentation does give is a start-up flag, covered below.

The start-up flags for whitelist, banlist and adminlist

Under "Server options," the Command line parameters page lists these, each with its one-line description:

FlagValueWhat the page says
--use-server-whitelistBOOL"If the whitelist should be used."
--server-whitelistFILE"Path to file with server whitelist."
--server-banlistFILE"Path to file with server banlist."
--server-adminlistFILE"Path to file with server adminlist."
--use-authserver-bansnone"Verify that connecting players are not banned from multiplayer and inform Factorio.com about ban/unban commands."

The BOOL value has a fixed spelling: "Parameters shown above with a BOOL option must be formatted as [parameter]=true or [parameter]=false." So turning the whitelist on at start-up is written --use-server-whitelist=true, not as a bare flag followed by a space and a value. The three FILE flags each take a path. The page says nothing about the file name or contents of the whitelist, banlist or adminlist, so this guide leaves them alone too; the Factorio headless server setup guide covers how to give yourself admin rights.

Put together with the server start flag the page documents - --start-server, described as "start a multiplayer server" and taking a save file - a launch line with every list flag looks like this, where the capitalised words are placeholders for your own paths and values:

  • factorio --start-server SAVE --use-server-whitelist=true --server-whitelist WHITELIST_FILE --server-banlist BANLIST_FILE --server-adminlist ADMINLIST_FILE

RCON flags

Three further options in the same "Server options" list cover RCON, each documented in a single line:

FlagValueWhat the page says
--rcon-portN"Port to use for RCON"
--rcon-bindADDRESS:PORT"IP address and port to use for RCON"
--rcon-passwordPASSWORD"Password for RCON"

That is the whole of what the page says about them. It does not describe the RCON protocol, which clients speak it, or whether the port and the bind address are alternatives, so none of that is claimed here. The practical reading is limited to the wording: --rcon-port chooses a port number, --rcon-bind takes an address and port together, and --rcon-password sets the password that goes with the feature.

Other server options in the same list

The same "Server options" table carries the flags you will most often combine with the admin ones: --port ("network port to use"), --bind ("IP address (and optionally port) to bind to"), --server-settings ("Path to file with server settings. See data/server-settings.example.json"), --console-log ("Path to file where a copy of the server's log will be stored") and --server-id ("Path where server ID will be stored or read from"). A copy of the server log is a useful record when you are checking who was kicked or banned and when.

The Factorio headless server setup guide walks through creating the save, writing the settings file and opening the port that all of this sits on top of. If you are changing hosts, moving your server to a new host covers carrying the save across, and Factorio server hosting availability shows the current plans and whether orders for them are open.

Common questions

How do I make someone an admin on a Factorio server?

Type /promote <player> in the console, for example /promote AzureDiamond. The Console page documents it as "Promotes the player to admin." and marks it admin only. /demote <player> is the reverse: "Demotes the player from admin." /admins prints the list of game admins, and /admin opens the player management GUI.

What are the Factorio whitelist commands?

/whitelist <add/remove/get/clear> [player]. The Console page: "Adds or removes a player from the whitelist, where only whitelisted players can join the game." Leave the player out with get to print everyone on the list. The page lists no enable or disable action, and says "An empty whitelist disables the whitelist functionality allowing anyone to join."

How do I ban, unban or kick a player in Factorio?

/ban <player> <reason>, /unban <player> and /kick <player> <reason>, as in /ban xTROLLx Throwing grenades in base. The Console page describes them as "Bans the specified player.", "Unbans the specified player." and "Kicks the specified player." /bans prints the banned players, and /banlist <add/remove/get/clear> <player> is documented as the same as /ban or /unban.

Which command-line flags control the whitelist, banlist and adminlist?

--use-server-whitelist (BOOL, "If the whitelist should be used."), --server-whitelist, --server-banlist and --server-adminlist, each taking a FILE and described as the path to the server whitelist, banlist or adminlist. The Command line parameters page also lists --use-authserver-bans, which verifies connecting players are not banned from multiplayer.

How do I write the BOOL flag --use-server-whitelist?

With an equals sign. The Command line parameters page says "Parameters shown above with a BOOL option must be formatted as [parameter]=true or [parameter]=false", so the flag is written --use-server-whitelist=true or --use-server-whitelist=false, and --server-whitelist then gives the path to the whitelist file.

What are the Factorio RCON flags?

--rcon-port N ("Port to use for RCON"), --rcon-bind ADDRESS:PORT ("IP address and port to use for RCON") and --rcon-password PASSWORD ("Password for RCON"). Those one-line descriptions are all the Command line parameters page gives; it does not describe the protocol or which tools connect.

Sources

Check current order availability. Minecraft (Paper, Vanilla and Forge) Standard: 8–56 player slots at CA$9.89–CA$69.23/month; Terraria Standard: 4–24 player slots at CA$8.99–CA$16.99/month; Valheim Standard: 3–10 player slots at CA$11.99–CA$17.99/month; Garry’s Mod Standard: 8–56 player slots at CA$9.89–CA$69.23/month; Factorio Standard: 8–24 player slots at CA$9.99–CA$13.99/month; Palworld Standard: 4–8 player slots at CA$12.99–CA$16.99/month; Enshrouded Standard: 4–6 player slots at CA$11.99–CA$13.99/month; Satisfactory Standard: 4–6 player slots at CA$14.99–CA$18.99/month; Conan Exiles Standard: 8 player slots at CA$15.99/month; 7 Days to Die Standard: 4–8 player slots at CA$10.99–CA$15.99/month; Rust Standard: 50 player slots at CA$19.99/month; Project Zomboid Standard: 8 player slots at CA$13.99/month; ARK Standard: 10 player slots at CA$19.99/month. Other game orders and other sizes and qualities are temporarily paused. Check game availability before ordering. After payment. Your server is set up automatically after payment. Prices are in Canadian dollars, there is no setup fee, and you can cancel any time.

See available Factorio plans

Questions this guide did not answer? Email support@fwg.world for pre-sales help. No account or payment is required.