Configure RCON and the admin password
Set rcon_password and sv_password, connect via an RCON tool, and secure remote access.
Configure RCON and the admin password
RCON (Remote Console) lets you administer the server remotely: kick, ban, change map, without joining the game. It is configured via rcon_password in server.cfg. In CS2, RCON listens on the main game port (no separate port).
Cause / The problem
Without RCON, you have to join the server in-game for every admin action. Without an RCON password, remote administration is impossible. And a poorly secured RCON (weak password, exposed port) is the prime target for bruteforce attacks.
Solution
- Set
rcon_passwordingame/csgo/cfg/server.cfg(CS2) orcstrike/cfg/server.cfg(CS:S):
In CS2, RCON listens on the same port as the game server — no extra port to open.rcon_password "AVeryLong_AndComplex_Rcon!" - Set
sv_passwordif you want a private (reserved-access) server:
Leave empty for a public server.sv_password "MatchPassword" - Connect via an RCON tool (HLSW, GameTracker, or a web RCON client) with:
- Server IP + game port
- The RCON password set above
- Common admin commands:
rcon kick "PlayerName" rcon banid 60 STEAM_0:1:12345 rcon changelevel de_dust2 rcon say "Global message" rcon mp_restartgame 1 - Secure RCON against bruteforce:
sv_rcon_banpenalty 60 sv_rcon_maxfailures 5 sv_rcon_minfailuretime 30 - Change the password if an admin leaves. Only share it through a password manager, never in plain text on Discord.
- Avoid public RCON: never publish the IP + port + password together. If you use a third-party tool (GameTracker), make sure it encrypts the password.
In CS2, the classic RCON protocol still works but some third-party tools offer a “Web RCON” via API. Always prefer strong authentication and an IP whitelist if the panel allows it.