ModsFinder

HAProxyCompat

by the_atmerek

HAProxyCompat restores the real client IP for a modded server that sits behind a reverse proxy such as FRP, nginx, HAProxy or Traefik.

FabricNeoForgeServer-side onlyGNU General Public License v3.0 or laterOpen source1.21 – 26.3

What it does

Without this, a Minecraft server behind a reverse proxy logs every player under the proxy's address, so IP bans and IP logs point at the wrong machine. Given a PROXY protocol header in v1 or v2 form, HAProxyCompat parses it, extracts the client's real IP address, and passes that address to Minecraft as though the connection came straight from the player. Real IPs then show in logs, IP bans work on the right address, and geolocation is accurate.

The mod is server-side only, so players join without installing anything. It runs on NeoForge and Fabric dedicated servers, and one jar covers each supported loader version; it includes one Netty piece that Minecraft does not ship. Files are published for 1.21 – 26.3 under the GNU General Public License v3.0 or later, and the source code is open source. Server owners only need to drop the jar into the mods folder and tell the proxy to send the PROXY header. If the proxy runs on a different machine, that machine's address has to be added to the trusted proxies list.

Key features

  1. Real client IP recovery

    The real address of each player is extracted from the PROXY header and used in place of the proxy's address.

  2. Trusted proxy list

    Only connections from addresses listed as trusted proxies are read, so a header from anyone else is ignored and dropped.

  3. Strict mode

    A master switch can be set to accept only connections that carry a valid PROXY header, which blocks direct connections that try to fake an IP.

  4. Accurate IP bans and logs

    Bans, logs and geolocation act on the player's real address instead of the proxy's, so one banned player cannot be replaced by a fake header from someone else.

Compatibility

Latest build for each game version and loader.

26.x5 of 5 versions with builds
26.31.1.01.1.0
26.21.1.01.1.0
26.1.21.1.01.1.0
26.1.11.1.01.1.0
26.11.1.01.1.0
1.21.x12 of 12 versions with builds
1.21.111.1.01.1.0
1.21.101.1.01.1.0
1.21.91.1.01.1.0
1.21.81.1.01.1.0
1.21.71.1.01.1.0
1.21.61.1.01.1.0
1.21.51.1.01.1.0
1.21.41.1.01.1.0
1.21.31.1.01.1.0
1.21.21.1.01.1.0
1.21.11.1.01.1.0
1.211.1.01.1.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

Fabric PROXY protocol Wrapper is a Fabric-only option for 1.21.11 – 26.3, server-side only and open source under the GNU General Public License v3.0 or later. NG HaProxy Support is for Forge 1.20.1 only, server-side only and released under the MIT License, but it is not open source. ProperProxyProtocol covers Fabric, Forge and NeoForge for 1.20 – 1.21.11 and is server-side only, but it is not open source and All rights reserved applies. NeoForged Velocity Support is NeoForge-only for 1.21.1 – 26.1.2, server-side only and open source under the MIT License.

ModLoadersGame versionsEnvironmentUpdated
HAProxyCompatFabric and NeoForge1.21 – 26.3Server-side only2026-09-24
PROXY protocol WrapperFabric1.21.11 – 26.3Server-side only2026-10-13
NG HaProxy SupportForge1.20.1Server-side only2026-03-15
ProperProxyProtocolFabric, Forge and NeoForge1.20 – 1.21.11Server-side only2026-05-27
NeoForged Velocity SupportNeoForge1.21.1 – 26.1.2Server-side only2026-07-10

Questions

Does HAProxyCompat need to be installed on players' computers?

No. Players join without it, since only the server has to run the mod.

What setup is needed when the proxy runs on the same machine as the server?

Nothing beyond installing the jar. The mod works out of the box when the proxy runs on the same machine as the server.

What happens if a connection without a valid PROXY header arrives?

With strict mode on, the connection is refused. Connections from addresses not on the trusted proxies list are ignored and dropped.

In the catalog

HAProxyCompat is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 8,071 mods support Minecraft 26.3.

More from the_atmerek

All projects

Similar mods

What the author says

Stop seeing 127.0.0.1. See who's actually connecting. When your Minecraft server sits behind a reverse proxy like FRP, nginx, HAProxy, or Traefik, every player looks like they're connecting from the proxy. Bans, logs, and IP tools all see the proxy's address instead of the real one. HAProxyCompat fixes that. It reads…
the_atmerek, on the Modrinth page

Official listing

Owner
the_atmerek
Published
2026-06-06
Updated on Modrinth
2026-09-24
Facts verified
2026-10-15

Tags