Skip to content
Connection Guard
Download

Real player IPs behind DDoS protection

DDoS protection hides your server, and by default it hides your players too. Bans, anti-VPN checks and country rules only work when the real address arrives. Here is how to make sure it does.

Updated · 7 min read · For Connection Guard 0.6.1

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:

  1. 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.
  2. 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:

ProviderRecommendedAlternativeGood to know
TCPShieldPROXY protocol v2 (supported since February 2022)TCPShield pluginThe plugin is incompatible with PROXY protocol. With the plugin, keep only-allow-proxy-connections: true in production. Plain Spigot needs ProtocolLib for the plugin.
NeoProtectPROXY protocol, enabled under BackendsNone neededPanel and server must match. Once on, direct connections stop working.
Infinity-FilterPROXY protocol, on by default for new networksForward plugin with a per-network tokenTurn the panel toggle off before using the plugin, and remove the plugin before turning it back on.
Cloudflare SpectrumPROXY protocol v1 or v2NoneCloudflare 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 = true

BungeeCord and Waterfall

In config.yml, on the listener players connect to:

listeners:
- host: 0.0.0.0:25577
  proxy_protocol: true

Paper, standalone

Only when no Velocity or BungeeCord sits in front of it. In config/paper-global.yml:

proxies:
  proxy-protocol: true

Backends 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

  1. 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.
  2. 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.
  3. 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.

Frequently asked questions

Why do all my players show the same IP behind TCPShield or NeoProtect?

Players connect to the protection service, and the service opens a new connection to your server. Unless it passes the player's address along, your server only sees the service's own addresses. Turn on PROXY protocol in the provider's panel and on your proxy or server, or use the provider's forwarding plugin.

Does Connection Guard work behind DDoS protection?

Yes, as long as the real player address reaches your server. Connection Guard reads the address your proxy or server reports at login. With PROXY protocol on Velocity, BungeeCord or Paper, or with the TCPShield plugin, that is the player's address. We test Velocity and BungeeCord with PROXY protocol v2 directly, and the public benchmark joins every platform through PROXY protocol.

What is PROXY protocol?

A short header that a proxy puts in front of each connection. It carries the client's address and port. Velocity, BungeeCord and Paper can read it natively, so no extra plugin is needed.

Should I enable PROXY protocol on Paper behind Velocity?

No. Enable it only where the protection service connects: on Velocity or BungeeCord in a network, or on Paper when it stands alone. Paper behind Velocity gets the address through Velocity's player info forwarding instead.

Is it safe to enable PROXY protocol?

Only with a firewall. A server that accepts PROXY headers believes whatever address the header names. Allow connections to that port only from your protection service's addresses, so nobody can connect directly and claim any address they like.

Does Cloudflare Spectrum pass the real IP?

Spectrum can add PROXY protocol v1 or v2, but Cloudflare's documentation lists that feature as Enterprise-only. On other plans your server sees Cloudflare's addresses, and no anti-VPN plugin can judge the players behind them.