What Is NAT Loopback and Why Can’t You Connect to Your Own Server?
You've set up a game server at home, port forwarded everything correctly, and your friends can connect—but you can’t. It’s frustrating, but often the issue is NAT loopback (also called NAT hairpinning).
What Is NAT Loopback?
NAT loopback is a router feature that allows a device inside your local network to access another internal device using the public IP address or domain name.
Without it, trying to connect to your server using its public IP or domain will fail—because your router doesn’t know how to handle the request internally.
Example:
- Server IP: 192.168.1.100 (inside your LAN)
- Public IP: 123.123.123.123
- You try to connect to
123.123.123.123:27015from the same network - If your router does not support NAT loopback, it blocks or drops the connection
How to Tell If You’re Affected
- Your friends can connect to the server fine from outside
- You can connect locally via LAN IP (e.g.
192.168.1.100), but not via your domain or public IP
If this describes your setup, your router likely lacks NAT loopback.
How to Fix It
Option 1: Use the Internal IP When on LAN
Instead of connecting to your domain/public IP, connect directly to the server’s local IP:
192.168.1.100:27015This always works from within the network.
Option 2: Add a Local DNS Override (Advanced)
If you use your own DNS (e.g. Pi-hole or router DNS), set your domain (e.g. play.mydomain.com) to resolve to the internal IP when accessed from your LAN.
Option 3: Use a Better Router
Many ISP routers don’t support NAT loopback. Gaming routers or custom firmware (e.g. OpenWRT, DD-WRT) often do.
Do I Need to Worry About This with EUGameHost?
Nope. NAT loopback is only a problem on home networks. When hosting with EUGameHost, your game server is on a public IP by default, and loopback isn’t an issue — connect from anywhere using the same IP.
Summary
NAT loopback is an often-overlooked limitation of home routers. It prevents local devices from connecting to local services via the public IP or domain. Use the LAN IP internally or upgrade your router if needed.