Home Net Guide

CGNAT and double NAT check

If port forwarding, a game server, a camera or a home VPN cannot be reached from outside, the usual cause is that your router does not hold a public IP address. Compare the address websites see with the one on your router to find out which kind of sharing is in the way.

Address websites see
Detecting…
Sign in to your router and find the address on its internet side. It is usually on the status or internet page, labelled WAN IP, internet IP address or external address. Type it above.

This page cannot see your router. It only compares what you type with the address your browser arrived from, so the answer is as good as the address you read off the router. Turn off any VPN or proxy on this device first.

What the result means

  • The two addresses match. Your router holds the public address itself. Port forwarding can work, and if it does not, the cause is elsewhere: the rule, the device's own firewall, or a port your provider blocks.
  • The router's address starts with 100.64 to 100.127. That range (100.64.0.0/10) is set aside for carrier-grade NAT, or CGNAT: your provider shares one public address among many customers. You do not control the provider's equipment, so nothing you set on your own router can open a port to the outside.
  • The router's address is private (10.x.x.x, 172.16 to 172.31.x.x or 192.168.x.x). There is another device doing address sharing in front of your router. Often it is yours, such as a modem-router from your provider with your own router plugged into it: that is double NAT, and you can fix it. Sometimes it is the provider's equipment, which is CGNAT under another address range.
  • Both are public but different. Usually a VPN or proxy on this device, a second internet connection, or an address that changed since you looked. Occasionally a provider shares addresses from a public range.

Why CGNAT exists

There are not enough IPv4 addresses for every connection to have its own, so many providers put customers behind a shared one. It is the norm on mobile, 4G and 5G home broadband and satellite services, and increasingly common on fixed lines. Browsing, streaming and video calls are unaffected, because those connections start from inside your network. What breaks is anything that needs the outside world to start a connection to you.

What to do about CGNAT

  • Ask your provider for a public address. Many will move you off CGNAT on request, or sell a static IP address as an add-on. This is the only fix that makes ordinary port forwarding work.
  • Use IPv6 if you have it. IPv6 addresses are not shared, so a device can be reached directly once you allow the port in the router's IPv6 firewall. It only helps when the person or device connecting in also has IPv6.
  • Use a service that connects outward. Mesh VPNs and tunnels such as Tailscale, ZeroTier and Cloudflare Tunnel work behind CGNAT because your device starts the connection to them. They suit reaching your own devices more than hosting a public game server.
  • Use a VPN service that offers port forwarding. A few do, on paid plans. The port is then opened on the VPN's address, not your provider's. See what four VPN services offer, and check the service's own site for whether port forwarding is included.

What to do about double NAT

  • Put the first device in bridge mode, so it stops routing and passes the public address to your own router. Providers' modem-routers usually have this setting, sometimes under the name modem mode or pass-through.
  • Or turn your own router into an access point, so only the provider's device routes. You lose your router's features, such as separate networks.
  • Or forward the port twice: on the first device to your router's WAN address, then on your router to the device you want to reach.

Double NAT is harmless for ordinary use. It matters for port forwarding, some online games, which report it as a strict or moderate NAT type, and some VPN connections.

A second way to check

Run a trace from a computer on your network: tracert 8.8.8.8 on Windows, traceroute 8.8.8.8 on macOS or Linux. The first line is your router. If the second line is an address starting with 100.64 to 100.127, your provider uses CGNAT. If it is another private address, such as 192.168.x.x, a second router sits in front of yours. Some providers' equipment does not answer traces, so a missing line proves nothing.

Related tools

See common port numbers for what each port is used for and whether it should be open, IP lookup to see who an address belongs to, and the 100.64.0.0/10 block in the subnet reference.