RCON Commands
How to log in to RCON (Remote Console) on your CS2 server and use it to send commands.
What RCON Is
RCON lets you send commands to your server from your own game client, so you can change the map, kick a player or change a setting while you play.
Valve RCON Does Not Work on CS2
Valve's built-in rcon and rcon_password commands do not work on CS2.
FSHOST servers run a plugin called FakeRcon that does the same job. Every command on this page uses fake_rcon instead of rcon. This works on both Free and Pro servers.
Before You Start
You need three things in place before any command on this page works.
Step 1: Turn On the Developer Console
In CS2, open Settings → Game → set Enable Developer Console (~) to Yes.
The console is off in a fresh CS2 install, which is why commands appear to do nothing for most first-time server owners.
Step 2: Open the Console
Press the ` key (backtick or tilde, above Tab on most keyboards) while in game. Press it again to close.
Console Key Does Nothing
On some keyboard layouts the default key does not register. Rebind it in Settings → Keyboard/Mouse → UI Keys → Toggle Console.
Step 3: Join Your Own Server
RCON commands are sent to the server you are connected to, so you must be on your server, not in the main menu.
Find the IP and port on your panel, then connect from the console:
connect 123.45.67.89:27015Commands Do Nothing in the Main Menu
Typing fake_rcon in the main menu produces no output and no error. If nothing happens, check that you are connected to your server.
Where to Type Commands
CS2 servers accept two kinds of commands, and mixing them up is the most common reason a command appears to be ignored.
| Type | Looks like | Where to type it | Used for |
|---|---|---|---|
| Console command | fake_rcon status | Developer console (`) | Server settings and cvars |
| Chat command | !map de_dust2 | In-game chat (Y or U) | Plugin features, such as map and game mode commands |
A chat command can also be sent from the console by putting say in front of it:
say !map de_dust2This is the same as typing !map de_dust2 in chat. The chat commands are listed in Free Server Commands and Pro Server Commands.
Log In
Find Your RCON Password
| Server | Where the password is |
|---|---|
| Free | You pick it under RCON Password when you create the server. The Free Server Panel shows it next to the connect command |
| Pro | The RCON password field in Game settings on the Settings tab of the Pro Panel. The Connection info box on the server page also shows it |
Step 1: Send the Password
In the console, type fake_rcon_password followed by your password:
fake_rcon_password your_rcon_passwordReplace your_rcon_password with the password from the panel. The console answers:
RCON admin authentication successful.
Privileges granted.The chat also shows [RCON] Authentication successful. A wrong password gives Bad rcon_password. instead.
The login is saved for your Steam account for 2 hours, so you stay logged in if you reconnect within that time. After 2 hours, log in again.
Step 2: Test It
fake_rcon say Test messageIf the message appears in the in-game chat, RCON works and every command below is available to you.
Never Type Your Password in Chat
fake_rcon_password belongs in the console only. Typed in chat, every player on the server can read it. If that happens, change your password: on Pro, change the RCON password in Game settings and save. On Free, stop the server and create a new one with a new password.
Log Other People Out
fake_rcon fake_rcon_cache_cleanThis removes every saved login except your own, so everyone else has to log in again. Use it after you change the password.
Server Information
Players and server status:
fake_rcon statusMessage to all players:
fake_rcon say Match starting soonKick a player:
fake_rcon kick PlayerNameMap Control
fake_rcon changelevel de_mirageMap names are not case sensitive here. de_MIRAGE is changed to de_mirage for you.
On Pro servers, a Workshop map loads by its ID:
fake_rcon host_workshop_map 3070238628See Workshop Maps.
Game Settings
Any cvar can be set with fake_rcon. Some common ones:
fake_rcon mp_restartgame 1 # Restart the game after 1 second
fake_rcon mp_maxrounds 24 # Rounds in a match
fake_rcon mp_startmoney 800 # Money at the start of each half
fake_rcon mp_maxmoney 16000 # Most money a player can have
fake_rcon mp_freezetime 15 # Freeze time at round start, in seconds
fake_rcon mp_buytime 20 # Buy time, in seconds
fake_rcon mp_c4timer 40 # Bomb timer, in seconds
fake_rcon sv_autobunnyhopping 1 # Auto bunny hopping onTo see the current value of a cvar, send it without a value:
fake_rcon mp_maxroundsSettings Can Be Changed Back
A game mode change or a config such as MatchZy's can set the same cvars again. On Pro servers, put settings you always want in your config template. See Config Files.
Server Name and Password
Change the server name:
fake_rcon hostname "My Server - free @ fshost.me"Free servers must keep - free @ fshost.me at the end of the name. On Pro servers, set the name under Hostname in Game settings, so it stays after a restart.
Set the join password:
fake_rcon sv_password mypasswordOn Pro servers, change or clear Join password in Game settings instead, so the change stays after a restart.
Cheats
Only use these on a practice server:
fake_rcon sv_cheats 1
fake_rcon sv_cheats 0Pro Panel Console
Pro servers also have a Console tab in the Pro Panel, which sends commands to the server without joining it and without fake_rcon. It only accepts letters, numbers, spaces, _, - and /, so commands with quotes or dots still need RCON. See Console Access.
Troubleshooting
RCON command not working
Check in this order:
- You are connected to your server, not sitting in the main menu
- You ran
fake_rcon_passwordand gotRCON admin authentication successful. - The password matches the one on the panel, with no trailing space. It is case sensitive
- You used
fake_rcon, notrcon
"You have not been authenticated."
You are not logged in, or your login is more than 2 hours old. The chat shows [RCON] You are not logged in. Run fake_rcon_password again.
"No command specified."
You sent fake_rcon without a command after it. Add the command, for example fake_rcon status.
Nothing happens when I press the console key
The console is off by default. See Before You Start to turn it on in Settings → Game.
A command works for other people but not for me
Check whether it is a chat command or a console command. See Where to Type Commands. Chat commands starting with ! or / do not work when typed straight into the console.