How to block proxy connections on a Minecraft server
Set prevent-proxy-connections=true in server.properties and restart the server. Players whose IP differs from their Mojang login IP are refused.
prevent-proxy-connections
Controls whether players are refused when their IP does not match the one they used to log in to Mojang.
prevent-proxy-connections=<value> Examples
prevent-proxy-connections=true Block VPN and proxy logins.
Values
| Value | What it does |
|---|---|
| true | On |
| falseDefault | Off |
Arguments
valueRequired- The value to write after the equals sign.
What it does
When true, players connecting through a VPN or proxy that differs from their authentication IP are kicked. It only works with online-mode on.
Good to know
- Changes take effect after a server restart.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.