Why the real IP matters
A Minecraft DDoS protection service such as TCPShield, NeoProtect or Infinity-Filter works as a reverse proxy. Players connect to the service, it filters the traffic, and it opens a fresh connection to your server. From your server's point of view, every player now comes from a handful of the service's own addresses.
Everything that depends on the player's address breaks quietly:
- IP bans hit the protection service, so they ban everyone or nobody.
- Anti-VPN checks look up the service's data-center address. Depending on the plugin and its sources, that either refuses every player as a data-center connection or lets every player through unchecked. Both are wrong.
- Country rules see the service's location instead of the player's.
- Alt detection and logs lump all players together.
The fix is the same for all of them: pass the real address from the protection service to your server.
How the address gets through
There are two ways, and you use exactly one of them:
- PROXY protocol. The service puts a small header in front of each connection that names the player's address. Velocity, BungeeCord and Paper read it natively. This is the standard and what most providers recommend.
- A forwarding plugin from the provider. The service hides the address in the login handshake, and the provider's plugin on your server restores it. TCPShield and Infinity-Filter offer one. It is the fallback for software without PROXY protocol support, such as plain Spigot.
Never enable both. A connection wrapped twice breaks the handshake, and players can't join.
Setup per provider
Panels change; the provider's own documentation is the reference. As of October 2026:
| Provider | Recommended | Alternative | Good to know |
|---|---|---|---|
| TCPShield | PROXY protocol v2 (supported since February 2022) | TCPShield plugin | The plugin is incompatible with PROXY protocol. With the plugin, keep only-allow-proxy-connections: true in production. Plain Spigot needs ProtocolLib for the plugin. |
| NeoProtect | PROXY protocol, enabled under Backends | None needed | Panel and server must match. Once on, direct connections stop working. |
| Infinity-Filter | PROXY protocol, on by default for new networks | Forward plugin with a per-network token | Turn the panel toggle off before using the plugin, and remove the plugin before turning it back on. |
| Cloudflare Spectrum | PROXY protocol v1 or v2 | None | Cloudflare lists PROXY protocol for Spectrum as Enterprise-only. Without it, your server only sees Cloudflare's addresses. |
Using a protection that filters on the network level instead, such as a host's built-in DDoS protection? Then nothing sits between player and server, the address arrives unchanged, and you don't need any of this.
Settings per platform
Enable PROXY protocol where the protection service connects, nowhere else.
Velocity
In velocity.toml, in the [advanced] section:
haproxy-protocol = trueBungeeCord and Waterfall
In config.yml, on the listener players connect to:
listeners:
- host: 0.0.0.0:25577
proxy_protocol: truePaper, standalone
Only when no Velocity or BungeeCord sits in front of it. In config/paper-global.yml:
proxies:
proxy-protocol: trueBackends in a network
Backends behind Velocity or BungeeCord don't speak PROXY protocol. They get the address through the proxy's player info forwarding, which you set up separately: see IP forwarding on Velocity and BungeeCord. Install Connection Guard on the proxy; one installation covers every backend.
Lock the direct route
A server that accepts PROXY headers trusts the address in them. Anyone who can reach that port directly can send a header with any address they like and dodge your bans and checks. Velocity and BungeeCord warn about this in the console for a reason.
- Allow the Minecraft port only from your protection service's addresses. Providers publish them; NeoProtect, for example, offers a plain list.
- Keep backend ports closed to the internet entirely, or reachable only from your proxy.
- Don't publish the server's own address anywhere, including old DNS records. Once it leaks, attackers skip the protection.
Check that it works
- Join the server yourself and look at the console. Velocity logs
[connected player] Name (/address:port) has connected, BungeeCord[Name,/address:port] <-> InitialHandler has connected. It should show your own home address, not the provider's. - Run
/cg info <player>. Connection Guard shows the address with its network and location. If the network is your protection provider, the real address isn't arriving. - If every player shows the same few addresses, PROXY protocol is off on one side. If players can't join at all right after the handshake, it is on only on one side, or both PROXY protocol and the forwarding plugin are active.
What we tested
Connection Guard reads the address that Velocity, BungeeCord or Paper report at login, so it works with whichever method fills it in. We checked that directly:
- Velocity 3.5.1 and BungeeCord build 2102 with PROXY protocol v2 (25 October 2026): a deny rule on a documentation address refused exactly the player whose PROXY header carried that address, and a connection without a header was not accepted at all.
- Paper, Folia, Velocity and BungeeCord in the public benchmark: every test join enters through PROXY protocol v2, and Connection Guard decides on the address in the header.
- The TCPShield plugin restores the address during the handshake, before any login event, according to its source code. We didn't run it ourselves.