RCON Commands
Remote Console (RCON) lets you administer your Call of Duty 4 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_crash
/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, GUID, 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. |
killserver | Shut down the server process. |
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. Writes their GUID to ban.txt. |
banClient <client_id> | Permanently ban a player by client ID. Writes their GUID to ban.txt. |
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. |
dumpuser <name> | Show detailed information about a connected player. |
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_war_timelimit "15"
/rcon set g_allowvote "0"INFO
Some settings (like g_gametype) require a map_restart or fast_restart before they take effect.
CoD4x Extended Commands
These commands are available because uHost servers run CoD4x v1.8:
| Command | Description |
|---|---|
screensay "<message>" | Display a message on every player's screen (HUD overlay). |
screentell <client_id> "<message>" | Display a message on a specific player's screen. |
permban <client_id> | Permanently ban a player (CoD4x ban system). |
tempban <client_id> | Temporarily ban a player (CoD4x ban system). |
dumpbanlist | Display the current ban list. |
ministatus | Compact player list (less verbose than status). |
loadPlugin <name> | Load a server plugin (without file extension). |
unloadPlugin <name> | Unload a server plugin. |
plugins | List all loaded plugins. |
pluginInfo <name> | Show details about a specific plugin. |
Map Names
Use these internal names with the map command.
Stock Maps
| Map | Command |
|---|---|
| Ambush | map mp_convoy |
| Backlot | map mp_backlot |
| Bloc | map mp_bloc |
| Bog | map mp_bog |
| Countdown | map mp_countdown |
| Crash | map mp_crash |
| Crossfire | map mp_crossfire |
| District | map mp_citystreets |
| Downpour | map mp_farm |
| Overgrown | map mp_overgrown |
| Pipeline | map mp_pipeline |
| Shipment | map mp_shipment |
| Showdown | map mp_showdown |
| Strike | map mp_strike |
| Vacant | map mp_vacant |
| Wet Work | map mp_cargoship |
DLC Maps
| Map | Command |
|---|---|
| Broadcast | map mp_broadcast |
| Chinatown | map mp_carentan |
| Creek | map mp_creek |
| Killhouse | map mp_killhouse |
| Winter Crash | map mp_crash_snow |
Game Types
| Code | Mode |
|---|---|
dm | Free-For-All |
war | Team Deathmatch |
sd | Search & Destroy |
sab | Sabotage |
dom | Domination |
koth | 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_crashKick 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 ""