LocalXpose
‱ 15 min read ‱ By Abdelhadi Dyouri

What Is CGNAT? A Simple Guide With Diagrams

CGNAT means your ISP shares one public IP between many customers. See how it works, how to check if you're behind it, what it breaks, and your options.

What Is CGNAT? How to Tell If You're Behind It

CGNAT (carrier-grade NAT) is when your internet provider puts many customers behind one public IP address. Your home router already does this for the devices in your house. With CGNAT, your ISP does it again, one level up, for whole streets of homes.

For browsing, streaming and video calls, you will probably never notice. The trouble starts when something on the internet needs to reach you: friends joining your game server, your phone opening your home cameras, or you logging in to your NAS from work. Those connections have no way in.

This guide shows how CGNAT works, how to check if you’re behind it in about two minutes, what it breaks, and what you can do about it.

Key Takeaways

  • CGNAT is a NAT run by your ISP. Many customers share one public IPv4 address.
  • Outgoing connections work fine. New incoming connections usually stop at the ISP, so port forwarding on your router can’t fix it.
  • The quickest check: compare your router’s WAN IPv4 with your public IPv4. If they differ, or the WAN starts with 100.64 to 100.127, you’re likely behind CGNAT (or double NAT).
  • Your options: ask your ISP for a public IPv4, use IPv6, use a VPN or VPS, or use an outbound tunnel.

What CGNAT Means

NAT (network address translation) lets many devices share one IP address. Your router does it every day. Your laptop, phone and TV each get a private address like 192.168.1.20, and the router swaps it for the one public IP your ISP gave you when traffic leaves the house.

With CGNAT, your router doesn’t get a public IP anymore. It gets an internal address from the ISP, and the ISP’s own NAT box swaps that for a public IP that many other customers use at the same time. So there are two NATs in a row: yours, and your ISP’s. Engineers call this NAT444, because the traffic crosses three IPv4 address spaces: your home network, the ISP’s shared space, and the public internet.

Think of it like an apartment building with one street address. Post you send out comes back fine, because the building knows which flat sent it. But a stranger who writes only the street address can’t reach you, because nothing on the envelope says which flat is yours.

Animated diagram: three homes with 100.72.x.x WAN addresses share one public IP, 203.0.113.50, through the ISP's CGNAT. A request from Home A goes out and the reply comes back. A connection from the internet is dropped at the CGNAT.

Here is what happens in that diagram, step by step:

  1. Your laptop (192.168.1.20) opens a website. Your router sends it out from its WAN address, 100.72.14.9.
  2. The ISP’s CGNAT swaps that for the shared public IP 203.0.113.50 and picks a port, say 40112. It writes this down in a mapping table.
  3. The website replies to 203.0.113.50:40112. The CGNAT looks up the mapping and sends the reply back to your router. Everything works.
  4. Now your friend tries to connect to 203.0.113.50 directly. There is no mapping for this connection, because you didn’t start it. The CGNAT has no idea which of its customers it’s for, so it drops it.

That’s why connections from the internet usually can’t reach a device behind CGNAT. On a normal connection you would fix it with port forwarding on your router. Behind CGNAT, the port you need to open is on the ISP’s equipment, and you can’t log in to that.

How to Check If You’re Behind CGNAT

You only need two numbers: the IPv4 address your router gets from the ISP (the WAN address), and the IPv4 address the internet sees (your public IP).

Flowchart: find your router's WAN IPv4. If it is between 100.64.0.0 and 100.127.255.255, it is CGNAT. If not, look up your public IPv4. If the two match, there is no CGNAT. If they don't match and you have your own router behind the ISP's router, it is probably double NAT. Otherwise it is probably CGNAT.

Step 1: Find Your Router’s WAN IPv4

Open your router’s app or admin page and look for a section called Internet, WAN, Status or Connection. Common admin addresses are 192.168.0.1, 192.168.1.1 and 10.0.0.1. Some ISPs (and Starlink) show it in their mobile app instead.

Write down the IPv4 address. Ignore any long address with colons in it, like 2001:db8::1. That’s IPv6, and it’s a different story (more on that below).

Step 2: Look Up Your Public IPv4

Use a computer connected to that router, and turn off any VPN or proxy first. Otherwise you will see the VPN’s address, not yours. Then open a terminal and run:

# macOS and Linux
curl -4 https://ifconfig.me

# Windows 10 or later (Command Prompt or PowerShell)
curl.exe -4 https://ifconfig.me

The -4 forces an IPv4 answer, so you get back one address with four numbers and dots. On Windows, type curl.exe, not just curl, because in older PowerShell curl runs a different command. You can also search “what is my IP” in a browser, but make sure the result is an IPv4 address.

Step 3: Compare the Two

Your router’s WAN IPv4Matches your public IPv4?What it means
198.51.100.24 (a normal public address)YesNo CGNAT. Your router holds the public IP.
100.72.14.9 (in 100.64.0.0–100.127.x.x)NoAlmost certainly CGNAT. This is the ISP shared address range.
192.168.0.2, 10.0.0.5 or 172.16.0.10NoDouble NAT (another router in your home) or CGNAT. See the next step.

The 100.64.0.0/10 range is set aside by RFC 6598 as “shared address space” for ISPs. If your WAN address is in it, CGNAT is the likely reason. But some ISPs use other ranges for CGNAT too, so a mismatch matters more than the exact number.

Step 4: Rule Out Double NAT

If your WAN address is a private one like 192.168.x.x, check what your router is plugged into. A very common setup is the ISP’s modem-router plus your own Wi-Fi or mesh router behind it. That’s double NAT: two routers in your own home, both translating addresses.

Double NAT looks a lot like CGNAT, but you can usually fix it yourself. Only one box should do the routing. Putting one of them in bridge or access point (AP) mode removes a layer of NAT. Your router’s manual or your ISP can tell you which one to switch. Then run the check again. If the WAN and public IPv4 still don’t match, the extra NAT is on the ISP’s side.

Optional: A Traceroute Clue

A traceroute lists the routers your traffic passes through. A hop in the 100.64.x.x to 100.127.x.x range right after your router is a strong hint.

# Windows
tracert -d -h 5 8.8.8.8

# macOS and Linux (install traceroute first if it's missing)
traceroute -n -m 5 8.8.8.8

Example output from a connection behind CGNAT:

 1  192.168.1.1     1.2 ms
 2  100.72.0.1      9.8 ms   <- CGNAT range
 3  100.65.18.4    11.3 ms
 4  203.0.113.1    12.0 ms
 5  8.8.8.8        14.6 ms

Treat this as a clue, not proof. Some ISP routers don’t answer traceroute, and some use other address ranges. If you see * * * on a line, that hop just didn’t reply.

Why ISPs Use CGNAT

There are only about 4.3 billion IPv4 addresses, and there are far more phones, laptops and smart devices than that. The central pool of unused IPv4 addresses ran dry in February 2011, when IANA handed its last blocks to the regional registries. The regional registries then ran out over the following years.

New IPv4 addresses now have to be bought from someone else, and they aren’t cheap. An ISP with 100,000 customers would need 100,000 public addresses to give everyone their own. With CGNAT, it can serve all of them from a small block, because most people only make outgoing connections.

That’s why CGNAT is common on mobile networks, 4G and 5G home internet, satellite internet and many newer ISPs. Two well-known examples: Starlink uses CGNAT on its standard Residential and Roam plans, and T-Mobile Home Internet doesn’t give customers a public IPv4 address either. Plans and policies change, so the check above is always the best answer for your own line.

What CGNAT Breaks (and What Still Works)

CGNAT mostly gets in the way of connections that start on the internet and come towards you. Things your devices start themselves almost always work as normal.

What you’re doingBehind CGNATWhy
Browsing, streaming, video callsWorksYour device starts the connection, so replies find their way back.
Joining online gamesMostly worksHosting lobbies or voice chat can struggle. Consoles may report a strict or moderate NAT type.
Cloud camera and smart home appsUsually worksThe device dials out to the vendor’s cloud.
Hosting a game server for friendsUsually failsFriends can’t connect in. Port forwarding on your router won’t help.
Opening your NAS, Plex or Jellyfin from outsideUsually failsSome apps fall back to a slower relay, others just fail.
Viewing an IP camera or NVR directlyUsually failsThe camera app needs an inbound connection.
Running a WireGuard or OpenVPN server at homeUsually failsThe VPN server needs an open inbound port.
SSH or Remote Desktop into a home PCUsually failsSame reason: no way in.
Torrents and other P2PSlowerOther peers can’t connect to you, only you to them.

There’s also a side effect that surprises people: you share your public IP with strangers. If one of them gets that IP flagged for spam or abuse, you might see more CAPTCHAs, rate limits or blocks. In one Cloudflare analysis, customers’ rules rate-limited IPs it identified as CGNAT three times as often as other IPs, even though the traffic was mostly from real people. When many people share one address, everyone can feel the effects of someone else’s traffic.

Is CGNAT Bad?

Not for most people. It lets ISPs keep connecting new customers while the world slowly moves to IPv6, and normal day-to-day use feels the same.

It’s bad for anyone who wants to host something or reach their home network from outside. It can also add a little latency, and a busy CGNAT can run short of ports during peak hours, though most users never notice.

One myth worth clearing up: CGNAT is not a security feature. It happens to block unsolicited inbound traffic, but your devices still need a proper firewall, updates and strong passwords. Don’t rely on CGNAT to protect you.

How to Get Around CGNAT

There is no setting on your own router that turns CGNAT off. The fix has to come from your ISP, or from making your connection outbound. Here are your options, from simplest to most hands-on.

OptionCostEffortBest forCatch
Ask your ISP for a public IPv4Free to a monthly add-onLowEverything, including port forwardingNot every ISP offers it, and it may still change
Static IP or business planHigher monthly priceLowServers that must always be reachablePrice
IPv6Free, if supportedMediumReaching your stuff from IPv6 networksThe other side needs IPv6 too, and you need firewall rules
Mesh VPN (Tailscale, ZeroTier, etc.)Free tiersMediumReaching your own devicesEvery device needs the app; not for public visitors
VPS + WireGuard or reverse proxyA small VPS each monthHighFull controlYou set it up and maintain it
Outbound tunnel (like LocalXpose)Free plan, Pro $8/monthLowSharing a game server, web app or cameraTraffic goes through a relay

Use IPv6 If Both Ends Have It

Many CGNAT connections also come with native IPv6, and IPv6 has no CGNAT in the way. If your ISP, your router, your device and the person connecting all support IPv6, they can reach your service directly. Your service has to listen on IPv6, and you need a firewall rule that allows the connection. A global IPv6 address does not skip your firewall. The weak point is the other end: plenty of networks, like office Wi-Fi and some mobile carriers, still don’t do IPv6.

Dial Out Instead of Waiting for Incoming Connections

CGNAT blocks new connections that start outside, but connections that start inside get through. A tunnel like LocalXpose uses that: a small client on your machine opens an outbound connection to a relay server that has a public address. When someone connects to the relay, it sends their traffic back down the connection you already opened.

Animated diagram: your server dials out through your router and the ISP's CGNAT to a tunnel relay with a public address. Your friend connects to the relay, and the relay sends the traffic down the open tunnel to your server.

With LocalXpose, that’s one command. For example, to share a web app or dashboard running on port 8080:

loclx tunnel http --to localhost:8080

You get a public URL that anyone can open, with no router changes and no public IP. HTTP tunnels are on the free plan. TCP and UDP tunnels, which you need for game servers and SSH, are on the Pro plan.

If that’s what you need, these guides go further:

The Short Version

CGNAT means your ISP shares one public IPv4 address between many customers. Day-to-day browsing and streaming work fine, but anything that needs to reach you from the internet usually stops at the ISP. Run the two-minute check above. If you’re behind CGNAT, ask your ISP for a public IPv4 first, and if that isn’t possible, use IPv6 or an outbound tunnel instead.

FAQ

Does CGNAT slow down my internet?

Usually not in a way you’d notice. Your speed depends on your plan and the ISP’s network. CGNAT can add a small amount of latency, and a busy CGNAT can run short of ports at peak times, but browsing and streaming feel the same for most people.

Can I turn off CGNAT on my router?

No. CGNAT runs on your ISP’s equipment, not your router. Only the ISP can take you out of it, usually by giving you a public IPv4 address.

Does UPnP or port forwarding help?

Not on its own. UPnP and port forwarding open ports on your router, but the traffic is still blocked one step earlier, at the ISP’s CGNAT. They start working once you have a public IPv4 address.

Will a VPN get me around CGNAT?

A normal VPN app on your laptop only helps you go out, not let others in. A VPN can help in two cases: when the device you want to reach joins the same private VPN (like a mesh VPN), or when the VPN provider offers inbound port forwarding on their server.

Is a 100.64.x.x address private?

Sort of. It’s not one of the classic private ranges (10.x, 172.16–31.x, 192.168.x), but it isn’t used on the public internet either. RFC 6598 sets 100.64.0.0/10 aside as shared address space for ISPs to use inside their own networks, which is exactly what CGNAT does.

What’s the difference between CGNAT and double NAT?

Both mean two NATs in a row. With double NAT, both are in your home (usually the ISP’s router and your own router), so you can usually fix it with AP or bridge mode. With CGNAT, the second NAT is at the ISP, so only the ISP can remove it.

Share this article

Abdelhadi Dyouri

Abdelhadi Dyouri

Developer & Technical Writer

Abdelhadi is a developer educator and SEO with a deep passion for the worlds of code, data, and đŸ”teađŸ”.