How to hide your game server's IP address

If players connect directly to your server, anyone can find its IP. A reverse proxy gives them a different address to connect to, but it only works if the real one doesn't leak some other way.

How a reverse proxy hides it

Players connect to the proxy, and the proxy opens its own connection to your server. Players only see the proxy's address, so your server's IP isn't in the game client or in their network tools.

Steps

  1. Check your protocol. We support WebSocket and TCP, not UDP. Plain TCP ports need a Growth or Premium plan.
  2. Start the proxy. Enter your server's IP and port, and you get a hostname to give players.
  3. Use the hostname everywhere. Update your client, launcher, website and guides. Use the hostname rather than the proxy's IP, because only the hostname follows you if we move your proxy.
  4. Move to a new IP if the old one was public. Anyone who saved your old address can still use it, so a proxy can't hide it after the fact. Ask your host for a new IP or move servers.
  5. Lock down the firewall. On your game port, allow only the proxy addresses on your dashboard. If we move you to a backup, its address appears there too, and your firewall will block it until you allow it.

Common ways the real IP leaks

  • DNS records: old or forgotten subdomains that point at the server, including records kept in public DNS history.
  • A website on the same server: its address is your server's address. Host it somewhere else.
  • Email from the same server: message headers can include the sending IP.
  • Outgoing requests: webhooks, avatars, image fetching or plugins that contact someone else's server show them your IP.
  • Old client builds and screenshots: anything published with the old address stays findable.

What this doesn't do

Hiding your IP makes your server harder to target, but it isn't DDoS protection. A large attack can still take a proxy server offline. We move you to a backup automatically when that happens, and players may need to reconnect. If you expect big attacks, use a dedicated protection service.