RCON Commands
Remote Console (RCON) lets you administer your Call of Duty 2 server without restarting it. You can manage players, change maps, and adjust settings in real time.
Logging In
From the In-Game Console
Press ~ to open the console and authenticate:
/rcon login <your_rcon_password>After logging in, prefix any command with /rcon:
/rcon status
/rcon map mp_toujane
/rcon kick PlayerNameFrom the uHost Dashboard
The RCON console on the dashboard connects directly to your server with no password entry needed. Type commands without the /rcon prefix.
Remote RCON (Not Connected to Server)
You can administer a server you're not playing on by setting the RCON address first:
/rconaddress <ip>:<port>
/rcon login <your_rcon_password>WARNING
Be careful typing RCON commands in the in-game console. If you mistype a command, your password could be displayed in chat. Use the dashboard RCON console or an external RCON tool for safer administration.
Server Management
| Command | Description |
|---|---|
status | List all connected players with client ID, score, ping, name, and IP. |
serverinfo | Display current server settings. |
map <mapname> | Change to the specified map. Performs a full reload. |
map_rotate | Advance to the next map in the rotation. |
map_restart | Restart the current map (full reload). |
fast_restart | Restart the current map without a full reload. Much faster than map_restart. |
say "<message>" | Broadcast a message to all players. |
tell <client_id> "<message>" | Send a private message to a player by client ID. |
exec <filename> | Execute a config file from the server directory. |
writeconfig <filename> | Save the current server config to a file. |
TIP
Prefer fast_restart over map_restart for restarting rounds. It skips the full map reload and is significantly quicker.
Player Management
| Command | Description |
|---|---|
kick <name> | Kick a player by name. Requires exact name including colour codes. Use kick all to kick everyone. |
onlykick <name> | Kick a player by name (colour codes not required). |
clientkick <client_id> | Kick a player by client ID. The most reliable method; get IDs from status. |
banUser <name> | Permanently ban a player by name. |
banClient <client_id> | Permanently ban a player by client ID. |
tempBanUser <name> | Temporarily ban a player by name. |
tempBanClient <client_id> | Temporarily ban a player by client ID. |
unbanUser <name> | Remove a ban by player name. |
TIP
Always use clientkick <id> instead of kick <name>. Client IDs from status are unambiguous, while names require exact colour code matches.
Live Setting Changes
You can change server settings without a restart using RCON:
| Command | Description |
|---|---|
sv_hostname "<name>" | Change the server name. |
g_password "<password>" | Set or clear the join password. Use "" to remove. |
g_gametype <type> | Change the game type. Requires map_restart to take effect. |
sv_maxclients <count> | Change the maximum player count. |
For any CVar, use the set command:
/rcon set scr_tdm_timelimit "15"
/rcon set g_allowvote "0"INFO
Some settings (like g_gametype) require a map_restart or fast_restart before they take effect.
Map Names
Use these internal names with the map command.
| Map | Command |
|---|---|
| Beltot | map mp_beltot |
| Brecourt | map mp_brecourt |
| Burgundy | map mp_burgundy |
| Caen | map mp_caen |
| Carentan | map mp_carentan |
| Dawnville | map mp_dawnville |
| Decoy | map mp_decoy |
| Downtown | map mp_downtown |
| El Alamein | map mp_farmhouse |
| Leningrad | map mp_leningrad |
| Matmata | map mp_matmata |
| Moscow | map mp_moscow |
| Rostov | map mp_rostov |
| St. Mere Eglise | map mp_stmereeglise |
| Stalingrad | map mp_stalingrad |
| Toujane | map mp_toujane |
| Wallendar | map mp_wallendar |
Game Types
| Code | Mode |
|---|---|
dm | Deathmatch |
tdm | Team Deathmatch |
sd | Search & Destroy |
ctf | Capture the Flag |
hq | Headquarters |
Change the game type live:
/rcon g_gametype sd
/rcon fast_restartCommon Workflows
Restart the Current Round
/rcon fast_restartSwitch to a Specific Map and Game Type
/rcon g_gametype sd
/rcon map mp_carentanKick a Disruptive Player
/rcon statusFind the player's client ID (first column), then:
/rcon clientkick 5Temporarily Ban a Player
/rcon tempBanClient 5Send a Server-Wide Announcement
/rcon say "Server restarting in 5 minutes"Password-Protect the Server Mid-Game
/rcon g_password "secretpass"To remove the password:
/rcon g_password ""