CS2: How to Install Fake RCON
How to run server commands from inside the game on your DatHost CS2 server with the Fake RCON plugin, and other options.
CS2's own rcon_password and rcon commands don't work from the game's console. Fake RCON is a free plugin that adds its own versions, so you can run server commands, like changelevel or mp_restartgame , while you play.
You don't need it to run commands from the control panel. The Console page in the panel runs server commands on its own.
In this article
Install Fake RCON
- Go to your DatHost Control Panel and click Edit on your CS2 server.
- Open Mods & Plugins in the left menu, then Plugins. Under Frameworks, turn on MetaMod.
- In the Plugin library, turn on Fake RCON.
- Click Save changes, then restart the server.


- Click Files and open addons/configs/fake_rcon/config.cfg. You can also search for
rcon. - Put your password in the quotes after
"rcon_password". Use at least 4 characters. This is separate from Server RCON in Settings. - Save the file, then restart the server.

Run commands in game
Open the game's developer console and type:
fake_rcon_password yourpassword fake_rcon mp_restartgame 1
The first line logs you in. After that, put fake_rcon in front of any server command. If commands stop working after you rejoin, log in again.
Other ways to run commands in game
- MatchZy: admins can type
.rcon <command>in chat. See CS2: How to Set Up Practice and Scrims. - CS2 Simple Admin: admins can use
css_rcon <command>n the console. See CS2: How to Make Yourself Admin.
These use your admin rights instead of a password, so they need CounterStrikeSharp on and you added as an admin.
Troubleshooting
The game doesn't recognise fake_rcon. Fake RCON isn't loaded. Check MetaMod and Fake RCON are on in Mods & Plugins, then restart. To check, type meta list on the Console page; Fake RCON should be in the list.
Commands do nothing, or "bad password". Use the password from Fake RCON's config.ini, not Server RCON from Settings. Log in again with fake_rcon_password after you join.
It stopped working after a CS2 update. CS2 updates can break MetaMod plugins until they're updated. We update the Plugin library as soon as a fix is out. Meanwhile, use the Console page in the panel. See CS2: How to Install Plugins.