Guides / server.properties
online-mode explained: should you turn it off?
What online-mode does in server.properties, the risks of turning it off, and when it's actually needed.
Updated
online-mode=true makes your server check each player's account with Mojang when they join. Leave it on unless you run a proxy.
What happens when it's off
With online-mode=false, the server takes whatever username a player gives it. Anyone can join as anyone, including you or one of your operators. They then get that player's inventory, permissions and operator commands.
A whitelist doesn't fix this, because the whitelist checks names, and the name is exactly what can be faked.
When it's needed
The only good reason is a proxy network with Velocity, BungeeCord or Waterfall. The proxy checks accounts, so the servers behind it run with online-mode=false. In that setup:
- Turn on the proxy's player info forwarding (Velocity's modern forwarding is best)
- Make sure the backend servers can only be reached through the proxy, with a firewall
Players without an account
Some people turn online-mode off so friends without a paid Minecraft account can join. That also lets anyone else join as you, so it's not safe on any server reachable from the internet.
Related settings
enforce-secure-profile: requires signed chat. Leave it on unless players can't join because of chat signing errors.prevent-proxy-connections: kicks players whose connection comes from a different IP than Mojang saw. Can block VPN users.
The server.properties generator warns you when online-mode is off.