Skip to content

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 PlayerName

From 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

CommandDescription
statusList all connected players with client ID, score, ping, name, and IP.
serverinfoDisplay current server settings.
map <mapname>Change to the specified map. Performs a full reload.
map_rotateAdvance to the next map in the rotation.
map_restartRestart the current map (full reload).
fast_restartRestart 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

CommandDescription
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:

CommandDescription
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.

MapCommand
Beltotmap mp_beltot
Brecourtmap mp_brecourt
Burgundymap mp_burgundy
Caenmap mp_caen
Carentanmap mp_carentan
Dawnvillemap mp_dawnville
Decoymap mp_decoy
Downtownmap mp_downtown
El Alameinmap mp_farmhouse
Leningradmap mp_leningrad
Matmatamap mp_matmata
Moscowmap mp_moscow
Rostovmap mp_rostov
St. Mere Eglisemap mp_stmereeglise
Stalingradmap mp_stalingrad
Toujanemap mp_toujane
Wallendarmap mp_wallendar

Game Types

CodeMode
dmDeathmatch
tdmTeam Deathmatch
sdSearch & Destroy
ctfCapture the Flag
hqHeadquarters

Change the game type live:

/rcon g_gametype sd
/rcon fast_restart

Common Workflows

Restart the Current Round

/rcon fast_restart

Switch to a Specific Map and Game Type

/rcon g_gametype sd
/rcon map mp_carentan

Kick a Disruptive Player

/rcon status

Find the player's client ID (first column), then:

/rcon clientkick 5

Temporarily Ban a Player

/rcon tempBanClient 5

Send 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 ""

Stop Paying for Empty Servers.