MasaApps360
English
RCONRCON

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.

1 min read · Updated

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.

Commands shared by Source engine servers (CAPITALS: your value, [ ]: optional)
CommandWhat it does
statusMap, 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 MAPSwitches to another map
exec FILERuns a config file from the cfg folder
sv_password PASSWORDSets or clears the join password

CS2 match settings

Counter-Strike 2 (CAPITALS: your value, [ ]: optional)
CommandWhat it does
mp_restartgame SECONDSRestarts the match after a delay
mp_maxrounds NRounds in a match
mp_warmup_endEnds the warmup

Team Fortress 2

Team Fortress 2 (CAPITALS: your value, [ ]: optional)
CommandWhat it does
mp_tournament 0|1Turns tournament mode on or off
tf_bot_quota NKeeps 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.

  1. On Servers tap the plus button to open Add Server.
  2. Fill in Server Name and Hostname or IP, then set Server Type to Counter-Strike. The port fills in for that game.
  3. Type the RCON password into RCON Password, tap Test Connection, then Save Server.
  4. 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

More RCON guides