Guide · Networks and administration

How to set up RCON safely

RCON, remote console, lets a tool or bot send commands to your server over the network. It is handy for automation and Discord bots, and risky if set up carelessly.

Enable it

With the server stopped, set these in server.properties and start again:

  • enable-rcon=true
  • rcon.port=25575, or a port your host assigned
  • rcon.password=a long random password
  • broadcast-rcon-to-ops=true if you want operators to see RCON commands

Connect with a client

Command-line tools such as mcrcon, and many Discord bots and admin dashboards, speak RCON. Give them the server address, the RCON port and the password, then send commands exactly as you would type them in the console.

Why it must not be public

The RCON protocol is not encrypted. The password and every command travel in plain text, and anyone who gets the password has full console access. Never reuse a password, never post the port and password anywhere, and keep RCON reachable only from the machines that need it. A firewall rule that allows only your bot's IP is the right approach.

You may not need it at all

If you only want to run commands remotely, a hosting panel console already does that over an encrypted connection, with per-user permissions. Use RCON when a specific tool requires it.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

What is the default RCON port?
25575. On a hosted server, use a port your host has assigned to the server instead.
Is RCON secure?
Not on its own. It is unencrypted and protected only by a password. Restrict who can reach the port.
Does RCON work on Bedrock servers?
Bedrock Dedicated Server does not include RCON. Use the hosting panel console instead.