Securing your Rust RCON password and port
Use a long unique password, allow the RCON TCP port only from IP addresses you trust, and rotate the password whenever staff leave or it leaks. WebRCON does not encrypt the password, so the network path matters as much as the password.
Anyone who holds your RCON password and can reach the port controls the server: they can run any console command, change admins, wipe data or ban players. Securing it comes down to two things you control, who knows the password and which IP addresses can reach the port. This guide assumes RCON already works; if not, start with how to enable RCON.
Quick checklist
- Set a long, unique
+rcon.passwordthat you use nowhere else. - Set
+rcon.portexplicitly, as a TCP port, and know what it is. - Allow that TCP port only from trusted source IPs, at every firewall layer.
- Keep the password out of chat, screenshots, logs and shared links.
- Rotate the password when staff change or exposure is possible.
Why the password alone is not enough
Facepunch’s webrcon documentation says the client keeps saved connections and passwords only in your browser, and that a shared link contains the server address and port. The password itself is sent in the WebSocket connection URL, and WebRCON does not encrypt it at the protocol level (checked November 2026). Facepunch’s own wiki also notes that its hosted web console is not served over HTTPS.
In practice that means a strong password protects you from guessing, but not from someone watching the connection path. Restricting who can reach the port covers that gap. An unusual port number does not: it only delays a scanner by seconds.
Choose a good password
- Make it long and random. A password manager generates one in seconds.
- Do not reuse your game panel, Steam, hosting account or operating system password.
- Avoid
#and double quotes. Some desktop clients parse them badly, and a correct password then looks like a failed login. Add length rather than special characters if a client complains. - Never leave it empty or at an example value copied from a tutorial. Facepunch’s parameter table tells you to change it.
Set it on the startup line, next to the port and mode:
+rcon.web 1 +rcon.port 28016 +rcon.password "your-strong-password"
The same options are covered in the server.cfg and startup guide. Parameters only apply after a restart.
Pin the port and keep it TCP
The Facepunch wiki says rcon.port defaults to the same number as server.port, while its examples use 28016. Choose a value explicitly so your firewall rule matches reality. Two details trip people up:
- RCON is TCP. The game port (default 28015) and the query port are UDP, so opening them does not expose RCON, and opening RCON does not help players join. The ports guide explains each one.
- If you do not set
server.queryport, it defaults to one more than the higher ofserver.portorrcon.port. Changing the RCON port can therefore move your query port, so set both when you change either.
BattleMetrics advises leaving rcon.ip at its default of 0.0.0.0, and, if you must change it, using a public address rather than a private or loopback one. Control access with the firewall instead of that option.
Restrict the port to trusted IPs
Facepunch suggests forwarding the RCON port on your router only if you need remote access. If everything that talks to RCON runs on the same machine or LAN, do not forward it at all. When something remote needs it, such as your own PC, a panel or a monitoring service, allow only that address.
Linux with ufw. UFW denies incoming traffic by default. Add one allow rule per trusted address, replacing the example documentation address:
sudo ufw allow from 203.0.113.10 to any port 28016 proto tcp
sudo ufw status numbered
To remove a rule later, use sudo ufw delete <number> with the number from the list.
Windows. In PowerShell, create an inbound rule scoped to a remote address:
New-NetFirewallRule -DisplayName "Rust RCON" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 28016 -RemoteAddress 203.0.113.10
Apply the same restriction at every layer you control: the host firewall, any cloud security group and the router. A permissive rule in one place does not override a block in another, and a restrictive one in one place does not help if another layer allows everyone. Do not open broad port ranges for convenience, and delete temporary test rules once you have confirmed the connection.
If your IP changes often, a small VPN you control gives you a stable address to allow. Some third-party services publish fixed source addresses you can allow; BattleMetrics, for example, handles its RCON whitelisting through its support team.
Keep the password out of the wrong places
Most leaks are human, not technical:
- Do not paste it in Discord, tickets or screenshots. Crop or blur saved WebRCON links, because they include the server address and port.
- Keep it in a password manager rather than a shared document or a script in a public repository.
- Check that logs, backup scripts and hosting-panel exports do not store it in plain text.
- Give each moderator the access their role needs. Handing out the raw RCON password gives everyone full console power; see admin and moderator setup for in-game roles that do not need it.
Rotate it
Change the password, restart the server and update your saved clients when any of these happen:
- An admin or moderator with the password leaves the team.
- The password or a connection link appears in a screenshot, log or ticket.
- You find unexplained commands in the console history.
Rotating is cheap if the password lives in one place. A web panel such as RustCommander’s RCON dashboard stores the connection on the panel side, so staff sign in with their own accounts and you only update one saved value, and your firewall rule only has to allow the panel’s address.
Test that the lock works
- From an allowed address, connect and run
statusfrom the RCON commands list. - From a network that is not allowed, for example a phone hotspot, try the same connection. It should time out.
- On Linux or macOS,
nc -zv <server-ip> <rcon-port>shows whether the TCP port answers. On Windows,Test-NetConnection -ComputerName <server-ip> -Port <rcon-port>does the same.
If a different RCON client connects but yours does not, the BattleMetrics troubleshooting notes suggest looking at your network or client first; if nothing connects, recheck the server settings.
What we could not verify
We found no documented Rust-specific RCON brute-force campaigns, and no official guidance on putting TLS or a reverse proxy in front of WebRCON, so this guide sticks to what is documented: strong credentials, restricted source addresses and rotation.
Frequently asked questions
Is Rust RCON encrypted?
Not at the protocol level. WebRCON carries the password in the connection URL, so keep the port reachable only from trusted addresses or over a VPN.
Should I change the RCON port to hide it?
A non-standard port is not a security control. Scanners find open ports regardless, so rely on a firewall source rule and a strong password instead.
Can I restrict RCON to my own IP address?
Yes. Create a firewall rule that allows inbound TCP on the RCON port only from your IP, office range or VPN subnet, at every filtering layer.
Can I use a # in my RCON password?
Avoid it. Some desktop clients mishandle # and double quotes, and BattleMetrics advises against #. Make the password longer instead of using special characters.
When should I change the RCON password?
Whenever an admin leaves, or any time the password or a saved WebRCON link might have been exposed in a screenshot, log or support ticket.
Sources
Run RCON commands, monitor Rust server logs, review chat history, and manage admin actions from one Rust RCON dashboard.