Source RCON commands: the short list for CS2, TF2 and the rest
Source RCON works the same way in every Source game: send a console command, get text back. The first three lines below work in all of them, then each game adds its own mp_ settings.
The shared set
Start with status: it prints the map, the address and every player with a user ID. You need that ID for kickid and banid.
| Command | What it does |
|---|---|
status | Map, address and connected players |
kickid userid|SteamID [reason] | Kicks a player by user ID or SteamID |
banid MINUTES userid|SteamID [kick] | Bans a player for N minutes (0 is permanent) |
changelevel MAP | Switches to another map |
exec FILE | Runs a config file from the cfg folder |
sv_password PASSWORD | Sets or clears the join password |
CS2 match settings
| Command | What it does |
|---|---|
mp_restartgame SECONDS | Restarts the match after a delay |
mp_maxrounds N | Rounds in a match |
mp_warmup_end | Ends the warmup |
Team Fortress 2
| Command | What it does |
|---|---|
mp_tournament 0|1 | Turns tournament mode on or off |
tf_bot_quota N | Keeps this many bots in the game |
Both games also use mp_timelimit, mp_friendlyfire and sv_cheats. The Valve Developer Community and the TF Wiki list all of them.
Before you connect
Set rcon_password on the server and reach the game port, usually 27015 over TCP. A wrong password and a closed port look different in the app, so test the connection first.
- On Servers tap the plus button to open Add Server.
- Fill in Server Name and Hostname or IP, then set Server Type to Counter-Strike. The port fills in for that game.
- Type the RCON password into RCON Password, tap Test Connection, then Save Server.
- Open the server from the list and type the command in the console. No slash in front.
Questions and answers
How do I send RCON commands to a CS2 server?
Set
rcon_password on the server, then connect an RCON client to the game port with that password and send the command text.What is the difference between kick and kickid?
kick takes a name. kickid takes the user ID or SteamID from status, which is safer when two players share a name.Do these work on other Source games?
The shared set does. The
mp_ settings differ by game, so check the game's wiki before you rely on one.You might also like
- How to check if your game server's port is open from your phone · RCON
- A game server command library on your iPhone · RCON