netcup 5 eur off

Minecraft RCON Password Generator

Generate a secure RCON password for your Minecraft server along with ready to paste server.properties lines, a Docker (itzg/minecraft-server) command and an mcrcon command that runs over an SSH tunnel. Everything is generated in your browser.

RCON Password
generating...
Options
Characters
server.properties
Docker (itzg/minecraft-server)
mcrcon over an SSH tunnel
Minecraft has no server password. RCON isn't one.

People search "Minecraft server password" expecting a box where players type a password to join. Vanilla Java Edition doesn't have that. The RCON password is not it either. RCON is a remote admin console: a TCP port that accepts server commands (/op, /stop, /whitelist, all of it) from anyone who knows the password. It lets you run commands without attaching to the server's terminal, and backup scripts use it to pause saving. It does nothing to stop players from joining.

So there are two separate jobs here:

  1. Control who can play: whitelist plus online mode.
  2. Protect the admin console: a strong RCON password, and RCON kept off the public internet.
How to actually "password protect" a Minecraft server

The whitelist is the lock. These are the server.properties settings that matter:

PropertyWhat it does
white-list=trueOnly players on the whitelist (and ops) can join.
enforce-whitelist=trueWhen the whitelist changes, online players who are no longer on it get kicked.
online-mode=truePlayers must be verified against Minecraft's account servers. This is what makes names on the whitelist mean anything.

Then add your players from the server console or in game as an op:

/whitelist on
/whitelist add SomePlayer
/whitelist remove SomePlayer
/whitelist list
/whitelist reload
/op YourName

Ops can always join while the whitelist is on, even if they aren't listed, so be stingy with /op. Ops can also run every command RCON can.

Check the default, don't assume it. Java Edition 26.3 changed white-list to default to true. Older versions defaulted to false. Open server.properties and look.
What RCON is and why its port must stay private

The server.properties side is three lines:

enable-rcon=true
rcon.port=25575
rcon.password=YOUR_GENERATED_PASSWORD

Defaults: enable-rcon is false, rcon.port is 25575, and rcon.password is blank. If RCON is enabled with a blank password, it won't start.

RCON is not encrypted. It sends the password and every command as plain text over TCP. Anyone on the network path can read the password, and anyone who can reach the port can try passwords.

A long random password handles the guessing. Nothing a password can do handles the plain text. So:

  • Don't forward 25575 on your router. Only the game port (25565 by default) needs to be reachable by players.
  • Firewall it on a VPS. With ufw: sudo ufw allow 25565/tcp and sudo ufw deny 25575/tcp.
  • In Docker, publish only the game port or publish RCON to localhost with -p 127.0.0.1:25575:25575. Docker-published ports skip ufw rules.
Which characters survive server.properties

server.properties is read as a Java properties file. A backslash starts an escape sequence, and leading spaces are dropped. Colons, equals signs, hash and exclamation marks work but Minecraft rewrites them with a backslash in front. That is why this generator defaults to A-Z, a-z and 0-9.

Written in the filePassword that workedLesson
ab\cdabcdA backslash escapes the next character and disappears.
x\tyx, a tab, y\t becomes a real tab.
end\\end\Write \\ for one backslash.
ab:c=d#e!fab:c=d#e!fWorks, and the server rewrote the line as ab\:c\=d\#e\!f.

The file isn't the only parser in the chain. The password also passes through your shell, maybe a Compose file, maybe a .env file, maybe a backup script. Each has its own rules for $, quotes, backslashes and !. If you pick the all-symbols mode, the generator escapes \ : = # ! in the properties line.

RCON with the itzg/minecraft-server Docker image
  • RCON is enabled by default, because the image uses it for clean shutdowns and for coordinating saves during backups.
  • If you don't set RCON_PASSWORD, it generates a random password at each startup. That's safe, but outside tools can't know it.
  • Set RCON_PASSWORD, or RCON_PASSWORD_FILE pointing at a file (handy with Docker secrets).
  • The container ships rcon-cli, already configured with the password. docker exec mc rcon-cli list just works.
  • Be cautious of mapping the RCON port externally.
Bedrock Edition is different
  • No RCON. The Bedrock Dedicated Server has no RCON setting in server.properties.
  • Allowlist, not whitelist. Set allow-list=true and manage allowlist.json with the allowlist command. Unlike Java, being an operator doesn't get you past the list.
  • online-mode=true requires Xbox Live authentication.
Rotation and common mistakes

Change the RCON password when someone with access leaves, when it has ever been typed into a chat or a screenshot, or when you find the port was exposed.

  • Forwarding 25575 "so the panel works" - use a tunnel or put the panel on the same machine.
  • Reusing the password from your hosting account or anything else. RCON sends it in plain text, so assume it can leak.
  • Committing it to git in a Compose file. Use RCON_PASSWORD_FILE or an untracked .env.
  • Treating the RCON password as a join password. Players will still walk right in without a whitelist.
  • Pasting a backslash into server.properties and wondering why the password doesn't work.
Minecraft Server Password and RCON FAQ

Vanilla Minecraft Java Edition has no join password. You control who gets in with the whitelist: set white-list=true and online-mode=true in server.properties, then run /whitelist add for each player. The RCON password is something else: it protects the remote admin console, not the game.

The default rcon.port is 25575 and enable-rcon is false. rcon.password is blank by default, and if RCON is enabled with a blank password it will not start.

No. RCON sends the password and every command in plain text over TCP. Anyone who can watch the traffic can read the password. Never expose the RCON port to the internet: bind it to localhost, firewall it, or reach it through an SSH tunnel.

Letters and numbers are always safe. server.properties is read as a Java properties file, so a backslash starts an escape sequence, and leading spaces are dropped. Colons, equals signs, hash and exclamation marks work but Minecraft rewrites them with a backslash in front. Shell and Docker Compose add their own trouble with dollar signs and quotes. That is why this generator defaults to A-Z, a-z and 0-9 at 32 characters.

No. The Bedrock Dedicated Server has no RCON setting in server.properties. Access control uses allow-list=true with an allowlist.json file, managed with the allowlist command, and online-mode=true requires Xbox Live authentication.