How to Whitelist Your Minecraft Server

A whitelist is a list of approved players. When it's turned on, nobody can join your server unless their username is on that list. It's the simplest way to keep a private server private, and it's the first thing most people set up after inviting friends.
How the whitelist works
There are two separate parts, and you need both:
- The list itself holds the usernames you've approved
- The whitelist switch decides whether your server actually checks that list
Adding names to the list does nothing on its own. If the switch is off, anyone who knows your address can still join. That catches out a lot of new server owners, so check both.
Method 1. Use the Players tab
- Open your control panel and go to the Players tab. It opens on Whitelist
- Type a player's exact Minecraft username into Add Player
- Click Add
- Do the same for everyone you want to let in. Players who are online right now are listed under Online now, where one click adds them
- Turn on Whitelist Enabled

With your server running, these changes take effect straight away and need no restart. With it stopped, they apply when it next starts.
To remove someone, click the trash icon beside their name. If they're online at the time, they stay connected until they leave, unless Enforce whitelist immediately is on (see below).
Method 2. Use the console
If you prefer commands, you can do the same from the Console tab while your server is running:
whitelist add PlayerName
whitelist remove PlayerName
whitelist on
whitelist off
whitelist list
whitelist list prints everyone who's approved, which is handy for a quick check. See Console for more on running commands this way.
Enforce whitelist immediately
Normally the whitelist only stops new connections. Someone who's already online stays online, even after you take them off the list.
To change that, go to the Config tab, turn on Enforce whitelist immediately in the Players card and click Save Changes. Then restart your server so it picks the setting up. From then on, anyone you remove from the whitelist is kicked straight away rather than at their next login.

If you turn on Whitelist Enabled on the Players tab while your server is stopped, Enforce whitelist immediately is turned on with it.
For everything else on the Config tab, see Server Properties.
Getting usernames right
The whitelist works on exact Minecraft usernames, so spelling matters. A few things to watch for:
- Ask your friends to copy their username rather than typing it from memory
- Bedrock players joining through Bedrock Edition support usually have a prefix, such as a dot in front of their name. Whitelist them using the name exactly as it shows in the console when they first try to connect
- If someone has changed their Minecraft name recently, add the new one
Common problems
A whitelisted player still can't join. Check the spelling of their username first. Then check that Whitelist Enabled is actually on, and that they aren't also on the Bans list.
Everyone is turned away, including you. The whitelist is on and your own name is probably missing from it. Add yourself on the Players tab, which works whether or not you can connect.
You want a public server instead. Turn Whitelist Enabled off. The list is kept, so you can turn it back on later without adding anyone again.
If players are still stuck after all that, Can't Connect to My Server covers the other common causes.
Next, you may want to give yourself OP so you can run admin commands in game, or read Player Management for all the player controls, including bans and IP bans.




