Native HAProxy PROXY Protocol (v2) Support for Dedicated Servers

2 votes

Title: Feature Request: Native HAProxy PROXY Protocol (v2) Support for Dedicated Servers

Body:
Please consider adding native support for the HAProxy PROXY Protocol (specifically Version 2) to the Enshrouded Dedicated Server executable.

This would allow server administrators running community servers behind local tunnel networks—specifically playit.gg, which many hosts use to safely route game traffic without opening ports or exposing their home network IP—to see the true, real public IP addresses of connecting players instead of the local loopback IP (127.0.0.1).

Why this is important:
- Home Server Security: Many casual and community hosts rely on services like playit.gg to run Enshrouded servers from home safely without exposing their personal public IP to DDoS attacks or scraping tools.
- Broken Master Server List & Discovery: Because the dedicated server cannot properly communicate with proxy network layers natively, servers hosted via playit.gg often fail to register or display correctly on the in-game public server list. The engine handles network packets under the assumption it is sitting on a standard open home port, hiding it from random players searching the browser.
- Broken Administration & Logging: Running behind playit.gg forces every single connecting player to show up in the console and logs as 127.0.0.1.
- Moderation Obstacles: This completely breaks an admin's ability to cross-reference alt accounts, track griefers, or issue effective IP-based bans to protect their community or builds from malicious actors.

Suggested Implementation:
By introducing PROXYv2 support, the game server could successfully communicate routing headers and correct handshake info back to the master server backend, allowing the server to be listed publicly.

Please add a simple configuration toggle flag inside the server configuration files (such as `enshrouded_server.json`):
"enableProxyProtocol": true

When enabled, the server engine should expect and cleanly parse the

Open suggestion Dedicated Server Suggested by: Hunter Upvoted: today Comments: 0

Comments: 0