RustCommander
Language
Open dashboard →

How to enable and connect to RCON on a Rust server

Add +rcon.web 1, +rcon.port and +rcon.password to your startup command, restart the server, then connect to the RCON port over TCP with a WebRCON-capable client.

Published · RCON & commands

RCON is switched on with startup parameters, not with a file you edit after the fact. You need three things: a mode, a TCP port and a password. After one restart you can connect from a browser, a desktop tool or a web panel and send the same commands you would type into the server console.

Quick answer

  1. Add +rcon.web 1 +rcon.port 28016 +rcon.password "your-strong-password" to your startup line.
  2. Restart the server. Parameter changes do not apply to a running process.
  3. Allow the RCON port as TCP in your firewall (and router, if players or tools connect from outside).
  4. Connect with a WebRCON client using the server address, the RCON port and the password.
  5. Run status to confirm the session works.

The three parameters

ParameterWhat it does
+rcon.web 1Enables WebSocket RCON, which Facepunch recommends and which modern tools expect
+rcon.port <port>The TCP port RCON listens on
+rcon.password "<password>"The password every client must send; a password is required

A complete line looks like this (your existing options stay as they are):

RustDedicated -batchmode [existing options] +rcon.port 28016 +rcon.password "your-strong-password" +rcon.web 1

Use a long, unique password. Anyone who has it controls the server, so do not reuse one from your game panel, Steam or your operating system. See the full parameter and server.cfg picture for what belongs on the command line versus in a config file; port settings go on the command line.

Pick the port yourself

Facepunch’s wiki examples use 28016, but its own parameter table says the RCON port defaults to the same value as server.port. Guides online contradict each other on this, and the Facepunch webrcon README only says a default exists without naming the convar. The safe habit is to set +rcon.port explicitly and write it down. Keep it different from your game port and your query port. The Rust server ports guide covers how the game, query, RCON and Rust+ ports relate.

WebRCON vs legacy RCON

rcon.web 1 selects the WebSocket protocol. rcon.web 0 selects the legacy Source-engine protocol. A WebSocket client cannot authenticate against a legacy server, and a Source RCON client cannot talk to a WebSocket one, so a “connected but nothing happens” report is often a mode mismatch.

Facepunch’s webrcon README states the intent for web RCON to become the default, with the old protocol needing a different command to enable and eventually being removed. Unless a tool you depend on is stuck on legacy, use rcon.web 1 and choose tools that support it.

Open the port

RCON is TCP. The game port and query port are UDP, so forwarding those does not expose RCON, and forwarding RCON does not help players join. Open only the explicit RCON port, and only where you need it:

  • Same machine or LAN: nothing to open beyond the local firewall.
  • Tools or panels on another network: allow inbound TCP on the RCON port in the host firewall, any cloud security group, and the router forwarding rules.
  • Hosted panels: most expose an “Enable Web RCON” checkbox and a password field in their advanced or basic settings, then restart for you. Note the RCON port the panel shows; it is not always the one in a tutorial.

Connect with a client

Browser (Facepunch WebRCON). Facepunch hosts a client at facepunch.github.io/webrcon. It runs entirely in your browser, stores saved connections and passwords only in that browser, and can produce a link for a specific server. That link contains the server address and port, so share it only with people allowed to try the password.

RustAdmin. In the configuration screen, set the RCON type to WebRcon, then enter the server port, the RCON port and the password, and connect. A green “Connected” indicator means the session is live. RustAdmin has a free legacy desktop version and a paid online version that stays connected around the clock and lets you give moderators limited permissions without handing out the password (checked November 2026).

Web panel. A panel such as RustCommander’s RCON dashboard needs the same three values: host, RCON port and password. The advantage is that your moderators sign in to the panel instead of each keeping the raw RCON password in their own client.

Once connected, run status first. It is harmless and proves the whole chain works. The commands you will use next are in the RCON commands cheat sheet.

Troubleshooting

SymptomLikely causeFix
Connection times outFirewall, cloud security group, router forwarding or carrier-grade NAT blocks the TCP portOpen the port and test from a different network
Connection refusedNothing is listening on that port, or another program holds itConfirm the server started with the parameters, and check for a competing listener such as a plugin RCON on the same port
Connects, then nothing happensProtocol mismatch between rcon.web and the clientMatch the client mode to the server setting
Authentication failsPassword differs in case or spaces, or the client strips quotesRetype it; avoid special characters if a tool puts the password in a URL
Parameters seem ignoredYou edited the wrong launch script, or did not restartCheck the real startup command and restart

To test reachability from a Windows machine, run Test-NetConnection -ComputerName <server-ip> -Port <rcon-port> in PowerShell. On Linux or macOS use nc -zv <server-ip> <rcon-port>. These prove the TCP port is open; they do not prove the password or protocol are right. If the server itself does not appear or start properly, see why a server is not showing in the browser.

Basic security

WebRCON has no encryption at the protocol level, and some clients put the password in the connection URL. Treat the RCON port as sensitive:

  • Restrict it to known IP addresses with a firewall rule, or put it behind a VPN, when you can.
  • Do not rely on an unusual port number as protection.
  • Rotate the password whenever a staff member leaves or the password appears in a screenshot, log or support ticket.
  • Never post the password, or a saved WebRCON link, in a public channel.

Next steps

With RCON working, set up your admin and moderator accounts so the right people can use it, and keep your server’s ports organised using the ports guide.

Frequently asked questions

How do I enable RCON on a Rust server?

Add +rcon.web 1, +rcon.port <port> and +rcon.password "<password>" to the startup command and restart. On a hosted panel, tick the Web RCON option and set a password instead.

What is the default Rust RCON port?

Facepunch's parameter table says it defaults to the same number as server.port, while its examples and most guides use 28016. Set +rcon.port explicitly so you never have to guess.

Is Rust RCON TCP or UDP?

TCP. The game and query ports are UDP, so opening those does not open RCON, and opening RCON does not let anyone play.

What is the difference between WebRCON and legacy RCON?

rcon.web 1 uses WebSocket; rcon.web 0 selects the older Source-engine protocol. The two are not interchangeable, so your client must match the mode.

Why can't my RCON client connect?

The usual causes are the wrong protocol mode, a closed or unforwarded TCP port, the wrong port number, or a password that differs in case or spacing.

Sources

Rust RCON dashboard

Run RCON commands, monitor Rust server logs, review chat history, and manage admin actions from one Rust RCON dashboard.

See how it works →