Rust RCON commands for running a server
Rust takes admin commands over a WebSocket RCON connection, and status is the first one worth sending. Here are the ones that cover players, bans, rights, saving and restarts.
Players, bans and rights
Rust names its commands after the part of the game they belong to (server., env., inventory.). Player commands take a name or a 64-bit SteamID.
| Command | What it does |
|---|---|
status | Server name, map, player count and who is connected |
playerlist | Connected players as JSON |
say MESSAGE | Sends a chat message to everyone |
kick PLAYER [reason] | Kicks a player, with an optional reason |
ban PLAYER [reason] | Bans a connected player |
unban STEAMID | Removes a ban by SteamID |
ownerid STEAMID [username] [reason] | Makes a SteamID an owner |
moderatorid STEAMID [username] [reason] | Makes a SteamID a moderator |
server.save | Saves the world now |
server.writecfg | Writes the current settings to server.cfg |
env.time HOUR | Sets the hour of the day, 0 to 24 |
restart SECONDS [reason] | Restarts after a countdown in seconds |
quit | Saves and stops the server |
What RCON cannot do
- Commands that act on your own character (fly, god mode, noclip) belong to the in-game F1 console. Over RCON there is no character to act on.
- A change made with a
server.setting lasts until restart. Sendserver.writecfgto store it inserver.cfg. owneridandmoderatoridwrite into the server's user files, so give them to people you would also give the keys of the house.
Connect from an iPhone
Set +rcon.port and +rcon.password in the server's startup line first. The app uses Rust's WebSocket RCON by itself when you pick Rust as the game.
- On Servers tap the plus button to open Add Server.
- Fill in Server Name and Hostname or IP, then set Server Type to Rust. The port fills in for that game.
- Type the RCON password into RCON Password, tap Test Connection, then Save Server.
- Open the server from the list and type the command in the console. No slash in front.
Questions and answers
How do I use RCON on a Rust server?
Start the server with an RCON port and password, then connect with an RCON client over WebSocket. The RCON app picks that protocol on its own for Rust.
How do I make someone a moderator in Rust?
Send
moderatorid with their SteamID and, if you like, a name. Use removemoderator with the same SteamID to take it back.Why do my fly or god mode commands do nothing over RCON?
Those act on a player character. RCON is a server console with no character, so they work only in the in-game console when you have the rights.
You might also like
- Rust RCON on your phone: connect and run admin commands · RCON
- A game server command library on your iPhone · RCON