Minecraft server reverse proxy

Give players an address on our network instead of your server's IP. We forward their connection to your Paper or Velocity server, and your server still sees each player's real IP.

Before you start

  • Java Edition only: it uses TCP. Bedrock needs UDP, which we don't support.
  • A paid plan: TCP ports come with Growth and Premium. The free plan and Starter are WebSocket only.
  • Sizing: Growth includes 100 connections per port with room to burst to 200, and Premium 300 with room to burst to 500. Each online player uses one, and server-list pings use one briefly.

1. Add your port

On your dashboard, add a TCP port with your server's IP and port, and turn on PROXY protocol v2. You'll get an address like yourcode.hanarchy.net:20001.

2. Turn on PROXY protocol on your server

Change only the first server behind our proxy, then restart it.

Paper, in config/paper-global.yml:

proxies:
  proxy-protocol: true

Velocity, in velocity.toml:

[advanced]
haproxy-protocol = true

If Velocity is your first server, leave this off on the Paper servers behind it and keep using Velocity's own player forwarding between them.

Once it's on, your server won't accept normal direct connections, including from you, so join through the proxy from then on.

3. Lock down your server's port

Allow only the proxy addresses on your dashboard to reach your Minecraft port. Otherwise anyone who finds your real IP could connect directly and send a fake player IP. If we move you to a backup server, its address appears on your dashboard too, and your firewall will block it until you allow it.

4. Give players a clean address

Players can use the address as it is. To hide the port, add an SRV record on your own domain, so they can join with play.example.com:

_minecraft._tcp.play.example.com  SRV  0 5 20001 yourcode.hanarchy.net.

Use your own port number, and leave the record unproxied if your DNS provider has that option.

What to expect

  • Real IPs: bans, logs and plugins see the player's IP once PROXY protocol is on.
  • Failover: if a proxy server goes down, your port moves to a backup and your hostname follows. Players may need to reconnect.
  • Connection rate: we refuse more than 20 new connections per 10 seconds from one IP, on each port.
  • Your old IP: if it was ever public, read how to keep your server's IP hidden.

What it doesn't do

This isn't a Minecraft-specific attack filter. We pass connections through without checking them for bots, so join floods and ping floods can still reach your server, up to your connection limits. Keep online-mode on and use an anti-bot plugin if you need one. A large attack can also take a proxy server offline until failover moves you. If your main concern is big attacks, use a dedicated Minecraft protection service.