What is CGNAT? How to tell if you're behind carrier-grade NAT, and what to do

Carrier-grade NAT means your ISP shares one public IPv4 address between many customers. A two-minute check to see if you're behind it, how to tell it apart from double NAT in your own home, what it breaks, and each way around it, from a phone call to your ISP to IPv6.

On this page What carrier-grade NAT is

You set up port forwarding for a game server, a Plex library or a security camera, and nothing outside your home can reach it. The router settings look right. Then you notice that the router's internet address is somewhere between 100.64 and 100.127 and doesn't match the address websites show you.

That's usually carrier-grade NAT (CGNAT). Your ISP has put your connection behind its own address translation, so you share a public IPv4 address with other customers and the ports you open on your router stop at the ISP's equipment. Checking for it takes a couple of minutes, and the fixes range from a phone call to your ISP to switching the service to IPv6.

What carrier-grade NAT is

At home, your router already does NAT (network address translation): your devices have private addresses like 192.168.1.20, and the router swaps them for its one public address on the way out. Public vs private IP addresses explains that first layer.

CGNAT adds a second layer inside the ISP's network. Your router no longer gets a public address. It gets an address from a range the ISP uses internally, and a large NAT device in the ISP's network translates again, sharing each public IPv4 address between many subscribers. Traffic goes:

text
laptop      192.168.1.20
-> router   WAN 100.72.14.9
-> ISP's CGNAT
-> internet 203.0.113.45

ISPs do this because there aren't enough IPv4 addresses. The free pool at IANA ran out in February 2011, as RFC 6302 notes, and RIPE NCC, the registry for Europe, the Middle East and parts of Central Asia, announced on 25 November 2019 that it had run out as well. Sharing addresses lets an ISP connect more customers than it has IPv4 addresses for.

For the internal side, the IETF reserved 100.64.0.0/10 (100.64.0.0 to 100.127.255.255) as "Shared Address Space" in RFC 6598. It's separate from the RFC 1918 private ranges so it doesn't collide with whatever the customer uses at home, and RFC 6598 says packets from it must not be forwarded across service provider boundaries. The behaviour of CGN devices themselves, such as how they allocate ports to each subscriber, is set out in RFC 6888.

How to tell if you're behind CGNAT

Compare your router's WAN address with your public IP

  1. Open your router's admin page (often 192.168.0.1 or 192.168.1.1, or the address printed on the router) and find the status page. Look for the WAN, Internet or IPv4 address.
  2. On a device connected to that router, open what is my IPv4. It shows your public IPv4 address only when your browser reaches it over IPv4, so on a connection that also has IPv6 it may say the IPv4 address isn't visible. In that case, use the curl -4 command (it needs an API key) in how to find your IP address.
  3. Compare the two.

If they match, you have a public IPv4 address and you're not behind CGNAT. If they're different, something between your router and the internet is translating your address: CGNAT at the ISP, or a second router in your own home.

100.64.0.0/10 and other tell-tale WAN addresses

What the router's WAN address looks like narrows it down:

WAN addressMeaning
Your public IPv4 addressPublic address, no CGNAT
100.64.x.x to 100.127.x.xShared address space: almost certainly CGNAT
10.x.x.xPrivate address: another router in your home, or CGNAT on RFC 1918 space
172.16.x.x to 172.31.x.xPrivate address: same as 10.x.x.x
192.168.x.xPrivate address, usually another router in your home
192.0.0.x, or noneDS-Lite, a form of CGNAT (see below)
A different public addressUnusual; ask your ISP

Some ISPs run CGNAT with ordinary RFC 1918 addresses instead of 100.64.0.0/10, so a private WAN address isn't proof either way. Check for a second router before you call the ISP. The subnet calculator shows whether an address falls inside 100.64.0.0/10 if you're not sure.

DS-Lite (RFC 6333) is a variant you may meet on IPv6-first connections. The router gets no public IPv4 address at all and sends IPv4 inside an IPv6 tunnel to the ISP, which translates it. RFC 6333 reserves 192.0.0.0/29 for the two ends of the tunnel: 192.0.0.1 for the ISP's end and 192.0.0.2 for the router, which may use another address in that block if the ISP's setup needs it. So some routers show a 192.0.0.x address and others show no IPv4 WAN address at all. Everything in the next sections applies to DS-Lite as well.

CGNAT or double NAT in your own home?

Double NAT happens when two routers in your home both translate addresses. The usual case is an ISP modem-router with your own Wi-Fi router plugged into it. Your router's WAN address is then a private address handed out by the ISP box, typically 192.168.x.x.

To tell the two apart, log in to the device that connects directly to the line (the ISP's modem, router or fibre box) and read its WAN address. If that one matches your public IPv4 address, the second layer of NAT is in your house, and you can remove it by putting the ISP box in bridge or modem-only mode, or by setting your own router as an access point. If even the first device has a 100.64.x.x, 192.0.0.x or private WAN address, or no IPv4 WAN address at all, the translation is at the ISP.

Traceroute check

A traceroute lists the routers your traffic passes through. On Windows, open Terminal or Command Prompt and run tracert -d 1.1.1.1 (tracert reference). On macOS or Linux, run traceroute -n 1.1.1.1, or tracepath -n 1.1.1.1 on Linux systems without traceroute. The output looks something like this (illustrative):

text
 1  192.168.1.1     1 ms
 2  100.72.0.1      6 ms
 3  100.72.255.254  7 ms
 4  203.0.113.1     8 ms

Hop 1 is your router. A hop in 100.64.0.0/10 straight after it, before the first public address, is a strong sign of CGNAT. Treat this check as supporting evidence only: ISPs and hosting networks often use private addresses on their internal routers even for customers with public addresses, and some routers don't answer traceroutes at all. The WAN address comparison is the reliable test.

What CGNAT breaks

Outgoing connections work normally: browsing, streaming and most apps don't notice CGNAT. Problems start when something on the internet needs to reach you.

  • Port forwarding stops working. Your router forwards the port, but connections from outside never get past the ISP's NAT, because the shared public address belongs to many customers and the ISP's device doesn't know which one should get the incoming connection.
  • UPnP and NAT-PMP only open ports on your own router, so they don't help either. RFC 6888 requires CGNs to offer subscribers a protocol for controlling their mappings, recommending the Port Control Protocol, but whether your ISP lets you use it is up to the ISP.
  • Hosting from home gets harder: game servers, Plex or Jellyfin remote access, home security cameras, NAS remote access, self-hosted websites and remote desktop all need incoming connections.
  • Some games and peer-to-peer apps have trouble. In tests run in 2011 and written up in RFC 7021, peer-to-peer Xbox gaming between two subscribers behind the same CGN failed because both shared one outside address, and BitTorrent clients behind it couldn't seed directly. Preliminary tests after an Xbox update in December 2011 suggested it fixed head-to-head play, at least for some games, so treat the details as dated. Consoles may still report a strict or type 3 NAT.
  • Bans and blocks spill over. A site that bans one abusive user's IPv4 address bans everyone sharing it. RFC 6269 notes that one user's failed logins can lock out others on the same address, and that blocklisting a spammer's shared address restricts everyone sharing it. Why is my IP blocked covers what to do when it happens.
  • Geolocation gets vaguer. RFC 7021 lists "loss of geolocation information" because translation zones can cross geographic boundaries, so your public address may appear to be in another city. How accurate is IP geolocation explains the effect.

How to get around it

Roughly from least to most effort:

  1. Ask your ISP for a public IPv4 address. Some ISPs that use CGNAT will move a customer to a public address on request, sometimes for a fee or as part of a static IP add-on. Ask specifically for "a public IPv4 address" or "to be taken off CGNAT".
  2. Use IPv6. If your ISP gives you IPv6, every device usually gets a public, globally reachable address with no NAT. You can make a service reachable over IPv6 by allowing it in your router's IPv6 firewall. It only works for people who connect to you over IPv6 themselves. Check with what is my IPv6, and see IPv4 vs IPv6 for how it works.
  3. Use a tunnel or relay service. Several services let a device behind NAT make an outgoing connection to their servers and publish a service through it, so nothing needs to connect in. Many self-hosted apps and game platforms have a relay option built in.
  4. Rent a small VPS with a public address and run a VPN or reverse tunnel from home to it. Traffic arrives at the VPS and goes down the tunnel to your device. This gives you the most control and needs the most setup.

A VPN service that offers port forwarding can also work, as long as the provider actually supports incoming connections. Changing your IP address another way, as in how to change your IP address, doesn't remove CGNAT: you get a different shared address.

Does CGNAT affect speed or privacy?

CGNAT doesn't reduce your bandwidth, and for browsing and streaming the extra translation step goes unnoticed. If a speed test shows less than your plan, look elsewhere first. Two side effects can show up, both caused by the ISP's NAT device. First, the NAT device drops the mapping for a connection that has been idle for a while, so apps that keep a connection open, such as chat, push notifications or remote sessions, have to send keep-alives or reconnect; RFC 6269 points out that those keep-alives cost phones battery. Second, the ISP can cap how many ports each subscriber uses at once, which RFC 6888 requires a CGN to support, so a device that opens a very large number of connections can hit the limit. The problems with hosting and some games are separate: they're about whether outside connections can reach you at all.

For privacy, sharing an address with many customers makes the address alone less useful to a website for telling one visitor from another. It doesn't hide you from your ISP, which runs the CGN. Because a shared public address no longer identifies a single subscriber, the ISP has to record which subscriber used which public address and port at what time if it wants to answer abuse reports or legal requests (RFC 6302 discusses this). RFC 6888 recommends that CGNs not log destination addresses or ports unless required.

If you run a website: many users, one address

To your server, a CGNAT address can be many unrelated people. Plan for that:

  • Don't ban or hard-limit by a single IPv4 address alone. Use short expiries, raise limits for addresses that belong to mobile carriers and ISPs, and prefer challenges over bans. The ASN and organization of an address tell you what kind of network it is.
  • Limit by account where you can, and by /64 prefix for IPv6. Rate limiting by IP in Express and Nginx and IPv6 geolocation cover prefix-based keys.
  • Serve your site over IPv6 too. Visitors who have it then arrive with their own addresses instead of a shared one.
  • Log the source port and an accurate timestamp along with the IP. RFC 6302 recommends that Internet-facing servers log "The source port number" and "A timestamp, RECOMMENDED in UTC, accurate to the second", because without the port an ISP can't tell which of its customers made a connection.

FAQ

Is CGNAT bad?

For most people it's invisible: browsing, streaming, video calls and app traffic work as normal. It's a problem if you need incoming connections, for hosting, remote access or some games, or if you keep getting blocked because of other people on your shared address.

Can I turn CGNAT off myself?

No. It runs in your ISP's network, so no router setting removes it. Only the ISP can move you to a public address.

Does mobile data use CGNAT?

Often, for IPv4. Many mobile carriers share IPv4 addresses between phones, and some give phones only IPv6 and translate to IPv4 at a gateway. To check, turn off Wi-Fi. On many Android phones, Settings > About phone lists the phone's IP address (on Samsung phones, under Status information; the exact place varies by maker). If it's a 100.64 to 100.127 or other private address, the carrier is translating it. You can also open what is my IPv4 on the phone: it shows an IPv4 address only when the phone reached the page over IPv4, and if that address differs from the one in Settings, the carrier is translating it too.

Why does my router show a 100.64 address?

Because your ISP has put the connection behind CGNAT. RFC 6598 sets 100.64.0.0/10 aside for the links between an ISP's CGN and its customers' routers. It isn't one of the RFC 1918 private ranges, but like them it isn't routed on the public internet, so an IP lookup has no location for it and port forwarding on your router won't reach you from outside.

Look up an IP address now

Free IP lookup: location, network and bot flags, no account needed.