MasaApps360
English
RCONRCON

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.

2 min read · Updated

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.

Rust server commands over RCON (CAPITALS: your value, [ ]: optional)
CommandWhat it does
statusServer name, map, player count and who is connected
playerlistConnected players as JSON
say MESSAGESends a chat message to everyone
kick PLAYER [reason]Kicks a player, with an optional reason
ban PLAYER [reason]Bans a connected player
unban STEAMIDRemoves a ban by SteamID
ownerid STEAMID [username] [reason]Makes a SteamID an owner
moderatorid STEAMID [username] [reason]Makes a SteamID a moderator
server.saveSaves the world now
server.writecfgWrites the current settings to server.cfg
env.time HOURSets the hour of the day, 0 to 24
restart SECONDS [reason]Restarts after a countdown in seconds
quitSaves 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. Send server.writecfg to store it in server.cfg.
  • ownerid and moderatorid write 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.

  1. On Servers tap the plus button to open Add Server.
  2. Fill in Server Name and Hostname or IP, then set Server Type to Rust. The port fills in for that game.
  3. Type the RCON password into RCON Password, tap Test Connection, then Save Server.
  4. 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

More RCON guides