Articles on: Rust

How To Setup RCON On Rust Server

To set up RCON on a Rust server, add +rcon.port 28016 +rcon.password "YourStrongPassword" to your startup command (or rcon.port and rcon.password in server.cfg), restart, then connect with an RCON tool using your server IP, the RCON port, and that password. Then run status to confirm it works.


This guide is for Rust server owners and admins who want to run server commands without being in-game. It covers setting the RCON password and port, opening the port, connecting with an RCON tool, and keeping it secure.


How to Set Up RCON on a Rust Server (Quick Steps)


  1. Stop the server.


  1. Set an RCON password and port in your startup command or `server.cfg`.


  1. Open the RCON port. The default RCON Rust port is 28016.


  1. Create a BattleMetrics account and add your server.


  1. Go to RCON and click Add RCON Connection.


  1. Enter your RCON IP, port, and password, then save.


Set the RCON Password and RCON Port (startup command vs. server.cfg)


Option 1: Startup Command


Add the following startup command to your Rust server:


+rcon.port 28016 +rcon.ip 0.0.0.0 +rcon.password "YourStrongPassword" +rcon.web 1


Setting

What It Does

+rcon.port

The server port RCON listens on. The default is 28016.

+rcon.ip

The address RCON listens on. 0.0.0.0 accepts connections from outside the server.

+rcon.password

The password every RCON tool needs to connect. (Required)

+rcon.web 1

Turns on WebRCON.

Option 2: server.cfg


Open your `server.cfg` file and add:


rcon.port 28016
rcon.ip 0.0.0.0
rcon.password "YourStrongPassword"
rcon.web 1


Don’t use the `#` character in your RCON password, since it can break the connection.


Restart and Open the RCON Port (firewall or port forwarding)


Restart your server so the new settings load. Then make sure the RCON port is open.


Windows:


netsh advfirewall firewall add rule name="Rust RCON" dir=in action=allow protocol=TCP localport=28016


Linux:


sudo ufw allow 28016/tcp


Connect Your Rust Server to BattleMetrics


BattleMetrics lets you manage your Rust server from any website or app without joining the game.


  1. Go to BattleMetrics and create an account, or log in.


  1. Add your server.


  1. Inside the server's dashboard, click RCON, then Add RCON Connection.


  1. Enter your RCON IP, RCON port, and RCON password.


  1. Save the connection and wait for it to connect.


Once BattleMetrics is working, you'll be able to manage players, use chat and logs, automate rules, give staff, run server commands, and much more.


All Rust Server RCON Commands


Server Information


Command

What It Does

status

Shows server details.

players

Lists connected players.

fps

Shows the server’s FPS.

Player Management


Command

What It Does

kick <player> "<reason>"

Kicks a player from the server.

kickall "<reason>"

Kicks everyone from the server.

ban <player> "<reason>"

Bans a player.

banid <steamid> "<name>" "<reason>"

Bans a player by Steam ID.

unban <player>

Unbans a player.

unbanid <steamid>

Unbans a player by Steam ID.

ownerid <steamid> "<name>" "<reason>"

Gives a player owner (full admin) permissions.

moderatorid "" ""`

Gives a player moderator permissions.

Server Management


Command

What It Does

say ""

Sends a global message to all players in chat.

server.save

Forces the server to save the world.

restart ""

Restarts the server after a countdown.

quit

Shuts down the server.

Run server.save before restart or quit, and run server.writecfg after you change owners or moderators so the change is saved to the file.


Updated on: 26/10/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!