Remote console (RCON)
Moderation tools, Discord bots and web panels can manage your servers through a password-protected remote console: list players with their IDs, scores, health and shields, read the chat, joins and kills as they happen, kick, ban (also for a time), let a kicked player back early, add and remove admins, mute text and voice chat, send server lines to everyone or one player, end the round or the game, change the map, mode or next game, rename the server, set its join password and ping limit, let players through the VPN block, spread players over teams or move one to another team, run votes, reload the configuration, and restart or stop the server. It's off until you set a password in dedicated.toml:
[rcon]
password = "a long passphrase only your tools know" # 8 to 128 characters
address = "127.0.0.1" # tools on this machine only; "0.0.0.0" for every network
Each server then listens on TCP at its own game port number: the server on UDP 49176 answers RCON on TCP 49176. rcon_port and rcon_password in a [[server]] give one server another port or its own password, for example for a community that moderates only its server. RECLAIMER_DEDICATED_RCON_PASSWORD and RECLAIMER_DEDICATED_RCON_ADDRESS set the two [rcon] settings.
Two protocols on one port
Source RCON
The protocol of Valve's games, which ready-made RCON clients, libraries in most languages and hosting panels speak: commands in, text out.
WebSocket
JSON replies, and live events: chat lines with the sender's player ID, joins, refused joins, leaves, kicks, bans, pardons, admins added and removed, mutes, votes, anti-cheat notices, every kill, the game starting and ending, whether a map change or team change worked, and each configuration reload. Browsers speak it too, so a web panel can connect directly.
WebSocket tools connect to ws://address:port/ with the subprotocol reclaimer-rcon:
sign in, within 10 seconds
{"type":"auth","password":"…"}
answer
{"type":"auth","ok":true,"protocol":1,"server":"…","version":"…"}
a command, as a line or as words; by names who acts
{"type":"command","id":7,"command":"kick #3 spam"}
{"type":"command","command":"ban","args":["#3","7d","spam"],"by":"Alice"}
its reply; data is the JSON form of the text
{"type":"reply","id":7,"ok":true,"text":"…","data":{…}}
events as they happen
{"type":"event","event":"chat","time":1793440610,…}
a tool more than 256 events behind
{"type":"lagged","missed":12}
RCON desktop client
Project Reclaimer RCON is a window for moderators. It's the reclaimer-rcon-version download for your system, Reclaimer RCON.app on macOS. It needs no game files and no game or server beside it, and project-reclaimer --rcon-app opens the same window.
- ConnectEnter the server's Host (a name or IP address, without a port), its RCON Port, normally the game port such as
49176, and the RCON Password, then choose Connect. An optional Moderator name tells players and the server's log who is acting. - Watch the serverThe player list refreshes every five seconds, with each player's service tag, whether they're alive, their health and shields, and how long ago they last died. The console shows chat, joins, leaves, kills and moderation as they happen, and whether a game or team change worked. JSON shows each event's fields and Copy copies the console.
- Act on a playerSelect a player to prepare a
tell,kick,ban,mute,unmuteoradmin addwith their player ID, change the message, time or reason, and choose Send. Status, Players, Bans, Admins, Maps, Modes, Next game, Votes and Help run those commands, and any command can be typed; Up and Down bring back earlier ones. - Run the gameThe Manage menu prepares a command to load a map and mode, change only one of them, set the next game, rename the server, set the join password, redistribute or shuffle the teams, start, pass or cancel a vote, pardon a kick or remove an admin. Change it, such as the map's name, and choose Send.
- It uses the WebSocket protocol and connects to the server directly, not through a
wss://proxy. From outside the server's network, use a VPN or an SSH tunnel (see Security): withssh -L 49176:127.0.0.1:49176 you@server, connect to host127.0.0.1, port49176. - It never saves the password or the connection, and clears the password field once you're signed in. A
passwordcommand is hidden as you type it and left out of the command history. A lost connection isn't retried on its own, and neither are commands, since one that got no answer may already have run: connect again yourself.
From the command line
On the server's machine, dedicated rcon reads the password and port from dedicated.toml, so it needs no setup:
project-reclaimer dedicated rcon players
project-reclaimer dedicated rcon --server "Community Rotation" kick Bravo spamming
project-reclaimer dedicated rcon --watch
--server names the server when several have RCON, --watch follows a server's chat and events until Ctrl+C, and --json prints replies as JSON. Put options before the command. It always gets in, however many tools are connected (see Security). In Docker, run it in the server's container, such as docker compose exec server-1 dedicated rcon ….
From anywhere else, reclaimer-rcon, or the game's own --rcon, runs one command, or watches:
reclaimer-rcon 203.0.113.4:49176 "your password" status
reclaimer-rcon --watch --json 203.0.113.4:49176 "your password"
project-reclaimer --rcon 203.0.113.4:49176 "your password" status
reclaimer-rcon --password-file ~/.rcon 127.0.0.1:49176 perfcapture 300
--password-file, before the address, reads the password from the first line of a file only you can read, so it never shows in a process list or a scheduled task. Files saved by Notepad or written by PowerShell work too.
reclaimer-rcon is the remote console's own download, on every system, and given no address it opens the window above. The server-only packages don't hold it: on a server, use dedicated rcon. For Windows, the RCON client downloads hold only that program and its checksum.
Commands
status- The server, its address, what it plays, where the round stands, players and limits, its anti-cheat and VPN blocking settings, and a vote under way. It counts bots apart from people (1/120 players [100 bots]), gives each team's score in a team game, and the server's memory after its last game.
players,list- Every connected player: number, name, player ID, address, admin or muted, team, the running score and kills/deaths during a game (kept after it ends until the next one begins), each team's score, split-screen players at their PC, service tag, whether they're alive with health and shields, the last death, and their device.
say <text>,tell <player> <text>- A
[Server]line in everyone's chat, or in one player's. kick <player> [time | 0] [reason]- Removes the player. They read who and why, and can't rejoin for the time given,
0for no wait at all, or else for 10, 30, 60, then 120 minutes on successive kicks (see kicks). ban <player | player ID | IP | range> [time] [reason]- Bans a connected player's ID, address and, where available, device together, for good or for a time such as
30m,12h,7dor2w. Also takes the player ID, address or range of someone who isn't connected. banip <player> [time] [reason]- The same as
ban, for a connected player. unban <name | player ID | IP | range>,bans- Lifts a ban together with its linked entries; lists the bans in force with who banned and how long is left.
pardon <player ID | IP | range | name>- Lets a kicked player rejoin this server now and forgets their earlier kicks here, so a next kick starts at 10 minutes again. Name them as they were kicked, or use the player ID or address from their
kickorrefusedevent. Bans needunban. admin [list],admins- The admins: those
dedicated.tomlnames and those the console added, with the ones online. admin add <player | player ID>- Makes a connected player, or a player ID, an admin on every server sharing the ban list, at once. They can kick and ban from the game and can't be vote-kicked.
admin remove <player | player ID | name>- Takes back an admin the console added, also after they left, by the name they were added under. Admins in
dedicated.tomlchange there. immune [list | add <player> | remove <player>]- The same for players no vote can kick, without admin rights.
vpn [IP]- Whether the server refuses players on a VPN, proxy or hosting provider, each list's size and age and who may join through one anyway; with an address, whether it's refused, on which list or network. See VPN blocking.
vpnallow <player | player ID | IP | range> [note],vpnrevoke <player ID | IP | range>- Lets a player or address join through a VPN on every server sharing the ban list, or takes that back. For a refused player, use the player ID from their
refusedevent. mute <player> [voice | text | all] [time] [reason] [shadow],unmute <player>,mutes- Nobody hears the player's voice, text or both: the server stops passing them on, for the time given, until
unmuteor until the server restarts. Rejoining keeps it. Withshadowthe player isn't told.muteslists them. role [list | add <player> <role> | remove <player>],moderator [list | add | remove]- The server's roles, what each may do and who holds them.
addgives a role on every server sharing the ban list;removetakes back one given here. joins [open | closed | queue | gate <phases> | gate none | remove <place | player ID>]- Whether new players get in, and who waits in the join queue. It holds until a reload changes the file's
joinsorjoin_gates. bots [kick <name | player ID>]- The bots on the server;
kickdisconnects one. commands [add <word> ["<usage>"] | remove <word> | clear]- Chat commands of your own, which a tool answers: after
commands add skip "/skip: vote to skip this map", a player's/skipreaches only the server, as acommandevent with its words and the player's ID and role, and/helplists its usage. Answer withtell. Up to 16 words, until a restart. health- How the server keeps up: frames and ticks a second, frame and tick times over the last minute, how many frames played no tick or two, the time each part of a frame takes, whether it is falling behind, upload and download, memory and uptime.
perf,perf slow- A text graph of the last minute, a column a second: the longest tick against the tick's length, each part of a frame, frames and ticks played.
perf slowlists the ten slowest ticks of the last ten minutes, with how many players were on. See a slow server. perfcapture <seconds> | stop | list- Writes the time of every part of every frame to a file in the server's
diagnosticsfolder, for 1 to 3600 seconds;stopends it early,listshows the files. See a slow server. endround,endgame- Ends the round as if its time ran out, or ends the game with the scores as they stand.
reload- Checks
dedicated.toml, the playlists and variants it names and the content folder, and applies them (see changing settings while servers run). The reply says what changed on this server, or what's wrong; then nothing changes. handoff <address:port> | cancel | status- Moves the lobby to a standby server between games, with nobody dropped. See handoff and failover.
failover set <address:port> | clear | status- The standby that takes the lobby over if this server goes down.
forge save [<name>],state [save | discard]- Saves the Forge map being played as a named map, or the server's state. See saving on the server.
restart [now],quit- Restarts this server once it has no players, or at once with
now.quitstops this server untildedicatedrestarts. help [command],?- The command list, or one command.
Name a player by their number in players (#3), their player ID, or their name when only one connected player has it; quote names with spaces. Players keep the name they chose even when someone else in the game has it, so two players can share one: use their number or ID then. A name that could mean more than one player is refused, saying so. A split-screen player is named by their host's number. The console acts with the host's authority, so it can kick, ban and mute admins too. Players read “Bravo was kicked by an admin.”, or the name a WebSocket tool says it acts for.
Game, server and vote commands
These change what the server plays, its name and join password, and run its votes.
maps,modes- The maps the server has, or its game types, each with the name to use in the commands below.
map <map>- Ends the game and plays this map next, with the same rules.
mode <mode>- Ends the game and plays this mode or saved game type next, on the same map.
load <map> <mode>- Ends the game and plays both next. Quote names with spaces:
load "The Pit" "Capture the Flag". nextmap [<map> [<mode>] | clear]- Sets the next game without ending this one; without a mode, the rules stay as they are.
cleartakes it back. On its own, says what's next and lists the playlist. weights,weight [map | gametype] <name> <0-10 | reset>,weight game <map> <mode> <0-10 | reset>- Every game of the playlist with its weight and how often it leads a ballot; or weigh a map, game type or game until a restart or a reload. See server weights.
next- Ends the game under way, or changes the lobby's, for the next one.
replay- Plays this game again: the one under way ends, and the lobby keeps it.
servername [<name>]- Renames the server, or says its name.
password [<password>]- Sets the password players need to join, up to 128 bytes, or says whether one is set;
password ""opens the server. It never shows the password, and doesn't change the console's own. maxping [<milliseconds> | off]- Shows or sets the highest ping a player may have as they join, up to 1000;
offor0takes everyone. Players already in stay. See ping limit. teamcount [2-64]- Spreads the players over that many teams, within the map's limit, or says how many teams have players.
shuffle,shuffleteams- Shuffles the players across the teams that have players, evening out their numbers. In the lobby it deals the teams for the next game.
balance [2-64],balanceteams- Deals the players by skill in even sizes, onto the teams in play or that many: each player's rating from the stats service, else their placings in their last games on this server, as the server's
teams.skillsays. team <player> <team>,setteam- Moves a player to
red,blue,green,orange,purple,gold,brownorpink, in the lobby or during a round, whatever the game type andteam_changinglet players do. A team's last player can't be moved during a round. See team changes. mapswitch <switch> <value>- In a Forge game, changes the map's switches as a player with the right role does from the Forge menu:
noclip,walls,guardians,respawnandpauseon | off,gravity <percent | off>,sky <name | off>,atmosphere …. See the map's switches. vote- The vote under way with its count, and the playlist ballot with its games and votes.
startvote <endround | endgame | shuffle | balance | kick | playlist> [player]- Calls a vote for the players to answer;
kicknames the player. Unlike a player's call, it starts with no yes vote.playlistopens the playlist ballot. passvote- Passes the vote under way, or closes the playlist ballot so the leading game wins as usual.
cancelvote- Ends the vote under way with no result, or cancels the playlist ballot. The playlist then waits until
startvote playlistor amap,mode,loadornextmap.
- A map or mode change ends the current game and starts the chosen one in the next lobby; a server waits for a player before starting it. On a playlist server, it replaces one vote, and the playlist goes on after that game. A game picked this way keeps the restrictions of the playlist's entries for it, such as
anti_cheatorvoice_team_only. - The reply only says the change was accepted. Whether it worked comes after, as a
controlevent in the WebSocket stream and the client's console, once the lobby has changed or with why it couldn't. A change that fails is dropped, and the lobby keeps its game while the server picks its next one as usual. - Map changes take base maps and saved maps, and the server's mod maps, written as in a playlist:
workshop:item ID/map file name. Every player's game gets the new map ready, and a multiplayer game begins with the players who have it while the others come in as theirs finishes; see players still loading. - A new server name, join password or ping limit lasts until the server restarts, or until a configuration reload changes that setting in the file;
dedicated.tomlstays as it is. teamcount,shuffleandbalancemove the players there are; they don't change the game type or limit the teams players join later. What they came to is acontrolevent withactionteams, once every player's game has confirmed it, and the game's chat says it.teammoves the player at once, also during a round, and is refused while a game starts and between rounds. The game's chat says how it went.
Co-op servers
On a campaign server, an ODST server or a Reach co-op server, each mission leads to its next or is played again, so the console doesn't choose the game, and status names the mission: map, mode, load, next, replay and nextmap with a game answer This server plays a co-op campaign: each mission won leads to the next (endgame plays this one again). To play something else, change campaign, odst or reach in dedicated.toml.
endgameends the mission, and the lobby plays it again.- A mission has no rounds or teams to work with: use
endgame, notendround,teamcountorshuffle. - In a playlist with co-op entries,
nextdoes work: it ends the mission for the playlist's next game.
Events
WebSocket tools and --watch get these as they happen, each with type "event", its name in event, and time:
chatchannel(all,team,proximityorserver),name,id,text, andteamon team chat.joinnumber,name,id,ip,admin. The name is empty: a player's connection comes before their name.playershas it once they're in.leavenumber,name,id.refusedname,id,ip,reason.kickname,id,by,reason,secondsthey're kept out.banname,id,ip,by,reason,expires(0 is for good).unban,pardontarget,by; a pardon also hasname.admin_added,admin_removed,role_added,role_removedname,id,by.staff,command- A command a player's role ran from chat, and a player's use of one of your own
commandswords:word,args,text, the player'sid,nameandrole. mute,unmutename,id,by; a mute also hasreasonandexpires.votestate,subject,caller.phasephase(playing,finishedorno_game),map,mode.server_phase- The server's own phase at each change:
lobby,voting,countdown,loading,in_gameorpost_game. queue- A player called from the join queue.
standby_joined,standby_lost,handoff_ready,handoff_done,handoff_failed,failover_done- A standby's
addressandversion; a move'sfromandto; or thereasonit failed. saved,save_failed- A save on the server that reached the disk, or didn't.
cheatname,id,category,detail,action(blockedorkicked).killkiller(null for the world),victim,report, the kind of damage. Every death, suicides and team kills included.killerandvictimare theengine_idthatplayersgives, in decimal.bot_join,bot_leave- A bot's
name,idand the reason. controlaction,ok,text: how a request went. Actions:load,playlist_vote,reload,reload_applied,teams, andkill_feedwhen deaths had to be dropped.
id is the player's network key, 64 hexadecimal characters. players in JSON gives each player's number, name, id, ip, admin, muted, team, score, kills, deaths, assists, betrayals, suicides, engine_id, device, service_tag, alive, health, shields and seconds_since_last_death, with guests and guest_players for split-screen players. players and status also give team_scores, bots, and scores: "live" during a game, "final" after it until the next begins. Health and shields are fractions, not percentages. A value the server can't tell yet, such as the last death before anyone has died, is null.
Security
- RCON is not encrypted. Keep
address = "127.0.0.1"and reach it from elsewhere through an SSH tunnel (ssh -L 49176:127.0.0.1:49176 you@server) or a VPN. If the servers must listen on every network, allow only your tools' addresses to the TCP ports in the firewall. A web panel can reach the WebSocket protocol through an HTTPS reverse proxy (wss://). - A client has 10 seconds to sign in. Five wrong passwords from one address within ten minutes lock that address out for up to ten minutes.
- At most 4 tools are signed in to a server's console at once, with up to 16 connections and four signing in per address. One more spot is kept for
dedicated rconon the server's own machine, which reads a key the server writes at each start todata/<server>/rcon-host.key, so you can always run commands there. A fifth tool is told the console is full and disconnected; that doesn't count as a wrong password. - The server log records every command that changes something with where it came from and the tool's
by. A password is never logged. - The password is kept in
dedicated.toml: keep the server folder private. Change the password when someone should no longer moderate. - In Docker, see the remote console note under Everyday use: on the host's network the consoles listen on the machine's own
127.0.0.1unless you set the address, andcompose.single.yamlpublishes them there only.
