How to Set Up RCON on Your Minecraft Server

Enable RCON (Remote Console) on your Minecraft Java server for remote command access from external tools, scripts, and integrations.

RCON (Remote Console) is Minecraft's built-in protocol for sending console commands to your server from outside the game. It's how external tools, Discord bots, web dashboards, and automation scripts run commands without logging in as a player.

Do you actually need RCON? The XGamingServer Panel Console already gives you full command access from a browser. RCON is only worth setting up if you're integrating with external tools (Discord bots, monitoring dashboards, custom scripts).

When to Use RCON

Use caseRCON needed?
Run commands from the panel❌ Use Console instead
Run commands from in-game❌ Use OP + chat
Discord bot that runs Minecraft commands✅ Yes
Monitoring dashboard / web panel✅ Yes
Custom backup or restart scripts✅ Yes
Tebex / Stripe purchase delivery✅ Yes (or HTTP plugin)
mcrcon from terminal for quick commands✅ Yes

Enable RCON

Stop the server

In the panel, open Console and stop your server.

Edit server.properties

Click Files in the sidebar and open server.properties. Set:

enable-rcon=true
rcon.password=your-strong-random-password
rcon.port=25575
broadcast-rcon-to-ops=false
SettingRecommendedNotes
enable-rcontrueEnables the RCON listener
rcon.password20+ random charactersMust not be weak — anyone with this password runs commands as console
rcon.port25575Standard RCON port — change if conflicts
broadcast-rcon-to-opsfalseHide RCON commands from OP players

Critical: RCON authentication is plaintext. The password is sent over the wire on every connect. Never use a real password — generate a random string with a password manager.

Add the RCON port to Network

In the panel, click Network in the sidebar. Click Create Allocation and add port 25575 (or your custom port).

Note the public IP and port — that's what your RCON client will connect to.

Start the server

Start from Console. RCON activates on the new port.

Test the connection

From your local machine, install mcrcon and run:

mcrcon -H your-server-ip -P 25575 -p your-password "list"

You should see the player list. If you see "connection refused", check the Network allocation.

RCON Clients

ClientPlatformBest for
mcrconWindows / Mac / LinuxQuick CLI commands and scripts
rcon-cliCross-platformDocker-friendly
KingsRCONWindows GUIVisual interface
mctools.orgWebQuick test from a browser
Source RCON Protocol librariesAny languageBuilding custom integrations

For Discord bots, use a library:

  • JavaScript / TypeScript: rcon-client from npm
  • Python: mcrcon or aiomcrcon
  • Go: gorcon/rcon

Security Best Practices

  1. Generate a long random password — 20+ characters, no dictionary words
  2. Never reuse the password elsewhere
  3. Restrict the RCON port to known IPs if possible (use firewall rules at the network level)
  4. Don't enable RCON on a publicly-advertised port unless you trust your firewall
  5. Rotate the password if you ever share or accidentally commit it
  6. Set broadcast-rcon-to-ops=false so OP players can't see what RCON is doing
  7. Audit who has the password — every team member with access can run any command

Remember: RCON commands run as console. That means full permissions, no OP check, no rate limit. A leaked password is equivalent to giving someone server root.

Common Commands via RCON

Most server commands work the same as in Console:

mcrcon -H ip -P 25575 -p pw "say Server restarting in 5 minutes"
mcrcon -H ip -P 25575 -p pw "save-all flush"
mcrcon -H ip -P 25575 -p pw "stop"
mcrcon -H ip -P 25575 -p pw "give Steve diamond 64"
mcrcon -H ip -P 25575 -p pw "list"

Settings Reference

SettingDefaultDescription
enable-rconfalseMaster switch for RCON
rcon.passwordemptyAuthentication password
rcon.port25575TCP port to listen on
broadcast-rcon-to-opstrueWhether OPs see RCON command output in chat

Common Issues

ProblemFix
Connection refusedRCON port not allocated in Network, or enable-rcon=false
Authentication failedWrong password — check rcon.password for typos
Connection times outWrong IP, or firewall blocking the port
Empty password errorRCON refuses empty passwords — set one
Commands run but return no outputSome commands have no output — check the actual server state
Port conflictChange rcon.port to a different value, update Network allocation
RCON works locally but not remotelyNetwork allocation not added, or external firewall blocks it

Common Mistakes

MistakeFix
Using a weak / reused passwordGenerate a long random one — RCON is full server access
Forgetting to add the port allocationRCON listens on the port but isn't reachable without Network entry
Sharing the password in support ticketsReset it after sharing
Enabling RCON when Console works fineAdds attack surface for no benefit — only enable if you need it
Not restarting after editing server.propertiesRCON loads at startup

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page