Private customers Business customers

CS2 RCON commands: the essential referenceControl the server via RCON - admin, maps, modes

With RCON, you control your Counter-Strike 2 server at runtime: change maps, set the game mode, manage players, load configs. This reference sums up the most important commands - including notes on activating RCON.

RCONAdmin commandsReference

Published on · last updated on

Activate RCON and connect

RCON is protected by a password. Set this in your server config or the startup parameters:

rcon_password YOUR_PASSWORD

In the game console, connect to your server and authenticate:

connect IP:port
rcon_password YOUR_PASSWORD
rcon status

Afterwards, you run every command with rcon in front (e.g. rcon changelevel de_dust2). On a server at MainHoster.de, you can also enter the same commands directly via the server console in the web interface.

CS2 server hosting from €5.99 / month

Prepaid without a contract, DDoS protection up to 250 Gbit/⁠s.

View plans & prices

Important commands at a glance

CommandFunction
statusshow players, SteamIDs and server info
changelevel <map>change the map (e.g. de_mirage)
host_workshop_map <id>load a Workshop map
map <map>reload a map (resets the server)
exec <config>run a config file (e.g. exec gamemode_competitive)
mp_restartgame 1restart the round/match immediately
mp_warmup_endend the warm-up
bot_add_t / bot_add_ctput a bot into the respective team
bot_kickremove all bots
kick <name>kick a player
sv_cheats 1unlock cheat commands (practice)
sv_setsteamaccount <gslt>set the GSLT for public visibility

Set modes via configs

You control game modes most cleanly via the supplied config files instead of individual cvars. Typical combinations of game_type and game_mode:

  • Competitive: game_type 0, game_mode 1
  • Wingman: game_type 0, game_mode 2
  • Rush: game_type 0, game_mode 6, map rush_001
  • Casual: game_type 0, game_mode 0
  • Deathmatch: game_type 1, game_mode 2

After setting game_type/game_mode, reload the map so that the settings take effect.

What is permanent via RCON - and what is not

This is where most hours are lost: almost everything you set via RCON does not survive the next map change. At map start, CS2 loads the related config files and overwrites most cvars with them. The server then suddenly behaves as before again, without anyone having changed anything.

The consequence for practice:

  • RCON is for testing and immediate measures - kicking a player, changing the map, trying out a value.
  • Permanent settings belong in the server.cfg or in a config that is loaded at every map start.

A proven process: try out values via RCON until the behavior is right, and then transfer them to the config. That way, you test quickly and still end up with a server that runs the way you set it up after a restart.

Security: the RCON password

Anyone who knows your RCON password has full control over the server - they can ban players, change the configuration and take the server out of play. Treat it accordingly:

  • A long password of its own that you do not use anywhere else. In particular, not the same as the server password for joining.
  • Not in screenshots, streams or shared configs. A quick glance at the console during a stream is enough.
  • Change it after every change in the admin team - just as you would with a door key.

If you want to give moderators rights without handing out the RCON password, an admin plugin via CounterStrikeSharp is the right way. With it, you grant graded rights per SteamID - kicking and banning yes, server configuration no.

RCON does not connect

Three causes cover practically all cases:

  1. Wrong port. RCON runs via the same port as the game. Use the port from the web interface, not one from someone else's guide.
  2. No password set. Without rcon_password in the server configuration, the interface is simply deactivated - the connection attempt then goes nowhere instead of producing an error message.
  3. Too many failed attempts. CS2 temporarily blocks an address after several wrong passwords. Wait a few minutes, then it works again.

status is suitable as a first test: if the server overview comes back, the connection is established, and you can turn to the actual commands.

Frequently asked questions

Set rcon_password in the server config or the startup parameters. Then connect via connect IP:port, authenticate with rcon_password and run commands with rcon in front. In the MainHoster web interface, this also works directly via the server console.

With rcon changelevel <map> for official maps or rcon host_workshop_map <id> for Workshop maps. changelevel tends to keep the game state, map starts the server fresh.

With mp_restartgame 1, the match is restarted immediately. For a clean competitive restart, also load the matching config via exec and end the warm-up with mp_warmup_end.

Rent your own CS2 server

Sub-tick optimized hardware, unlimited slots, Workshop maps, Metamod:Source & CounterStrikeSharp - prepaid, made in Germany.

View plans & prices

CS2 server hosting

from €5.99 / month

Prepaid without a contract, DDoS protection up to 250 Gbit/⁠s, hosted in Frankfurt am Main.

View plans & prices

Go straight to checkout

Read more


Discover more