Guides / server.properties

How to set up RCON safely on a Minecraft server

Enable RCON for remote console access, with a strong password and without exposing your server.

Updated

RCON lets you send console commands to your server from another program, like a Discord bot, a web panel or a command-line tool. It gives full control of the server, so set it up carefully.

Enable it

In server.properties:

enable-rcon=true
rcon.port=25575
rcon.password=use-a-long-random-password-here

Restart the server. You can set these in the server.properties generator, which warns you if the password is short.

Keep it safe

  1. Use a long random password. 20 or more characters from a password manager. RCON has no limit on login attempts.
  2. Don't open the RCON port to the internet. Only open 25565 for players. Connect to RCON from the same machine, over a VPN, or through an SSH tunnel.
  3. Know it isn't encrypted. The password and commands are sent as plain text, so don't use RCON across the open internet.

Connect to it

With the mcrcon tool, on the same machine:

mcrcon -H 127.0.0.1 -P 25575 -p yourpassword "list"

Do you need it?

If you run your server through a panel like Pterodactyl, the panel already has a web console, so you may not need RCON at all. Leave it off unless a tool needs it.

Work it out for your server

The free server.properties generator gives you the exact settings for your setup.

Open the server.properties generator →