How to Check If You Have a Public IP: Is Your ISP Using CGNAT?
How do you tell whether you have a public IP? The most direct way is to compare two addresses: the IP on the WAN port of your optical modem (or of whichever router does the PPPoE dialing), and the egress IP that outside websites see. If they match, you have a public IPv4. If they differ, and the WAN address sits in a private range such as 100.64.0.0/10 or 10.0.0.0/8, you are almost certainly behind carrier-grade NAT (CGNAT).
Below are three steps, followed by what CGNAT affects and what the alternatives are. The examples assume a typical Chinese home fiber setup, where the "optical modem" (光猫, an ONT/fiber modem supplied by the ISP) often does the PPPoE dialing itself.
What are a public IP, a private IP, and CGNAT?
First, the address ranges:
| Range | Source | Meaning |
|---|---|---|
| 10.0.0.0/8 | RFC 1918 | Private addresses, used in homes and offices; ISPs may also use them for CGNAT |
| 172.16.0.0/12 | RFC 1918 | Private addresses |
| 192.168.0.0/16 | RFC 1918 | Private addresses, the most common range on home routers |
| 100.64.0.0/10 (100.64.0.0–100.127.255.255) | RFC 6598 | Shared address space, reserved for ISPs to use for CGNAT |
| Everything else routable on the internet | Allocated to ISPs and others by the Regional Internet Registries (RIRs) | Public addresses |
CGNAT means the ISP adds another layer of NAT inside its own network. Your modem only gets an address from the ISP's internal network, and the public IPv4 that actually appears on the internet is shared by many subscribers. Your own router does one layer of NAT and the ISP does another, which is why this is often called "double NAT".
RFC 6598 set aside 100.64.0.0/10 precisely so that the ISP's internal network would not collide with the 192.168.x.x and 10.x.x.x ranges used inside your home. But RFC 6598 does not forbid ISPs from using other private ranges, and some networks still hand out 10.x addresses for CGNAT. So a 10.x WAN address does not by itself mean the problem is in your home network. It could be the ISP's layer. Step 1 explains how to tell the difference.
Step 1: Find the device that actually dials, and read its WAN address
Home broadband usually comes in one of two setups, and where you read the WAN address differs:
- Modem in router mode: the modem itself dials PPPoE, and your own router is plugged in behind it. Your router's WAN port then typically shows something like 192.168.1.x, handed out by the modem, which tells you nothing. You need the modem's WAN address.
- Modem in bridge mode: the modem only converts optical to electrical signals, and your router dials. In that case, look directly at the router's WAN address.
How to do it:
- Log in to the modem's admin page (the address and credentials are usually printed on a label on the back). Look for pages named something like "Network info", "WAN connection" or "Broadband status", and note the IPv4 address of the INTERNET connection.
- If the modem is bridged and your router dials, check the IPv4 obtained via PPPoE under "Internet settings" or "WAN status" in the router's admin page.
- Look only at connections labeled INTERNET. Modems often also carry TR069 (remote management), VOIP and IPTV connections. Their addresses are in the ISP's internal ranges by design and have nothing to do with whether you are reachable from outside.
Once you have the address, check it against the table above:
- 100.64.x.x through 100.127.x.x: you can already call this CGNAT. The next two steps are for confirmation.
- 10.x or 172.16–31.x: most likely CGNAT, but first make sure you read the WAN of the dialing device, not the WAN of a secondary router.
- 192.168.x.x: you almost certainly read the wrong device. Go one level up.
- Anything else: move on to step 2.
Step 2: Look up your egress IP with an external service and compare
The WAN address is what you see from your side. The egress IP is what the internet sees. One precondition for the comparison: turn off any proxy, VPN, or routing rule that proxies the detection site. Otherwise the outside world sees the proxy server's address, which has nothing to do with your broadband. If you are not sure which path your traffic takes, read How Chinese websites see your real IP and the explanation of split tunneling first.
Steps:
- From your home network, open cdnping's IP and environment check and note the egress IPv4. The page also shows IPv4/IPv6 results and a mainland China routing check. If the routing check says "global proxy" or "mainland split", the egress you see may not be your broadband's own address, so fix that and test again.
- The same page shows the registration info for the IP's network block (RDAP) and the IP type. A home broadband line is normally classified as residential or mobile. If it says data center, your traffic is most likely going through a proxy.
- Put the egress IPv4 next to the WAN address from step 1:
| WAN address | Egress IP | Conclusion |
|---|---|---|
| Public address, same as egress IP | Same | You have a public IPv4 |
| Public address, different from egress IP | Different | Rule out proxies first; if it still differs, it may be a transparent proxy or special egress at the ISP, so ask the ISP |
| 100.64.0.0/10 | Any public address | CGNAT |
| 10.x / 172.16–31.x (read on the dialing device) | Any public address | Almost certainly CGNAT; confirm with step 3 |
"The modem's WAN IP differs from my public IP" is the classic CGNAT symptom. The second row is the rarer case.
You can also look up which ISP and which autonomous system the egress IP belongs to. See How to find which ISP an IP belongs to and What is an ASN.
Step 3: Use traceroute to look for 100.64 or 10.x in the first hops
The first two steps are usually enough for a conclusion. Traceroute is for double-checking when the WAN address is 10.x and you are not sure who assigned it, and it also helps when you have no access to the modem's admin page. Again, turn off proxies and VPNs before testing.
Windows (Command Prompt):
tracert -d -h 8 223.5.5.5
macOS / Linux:
traceroute -n -m 8 223.5.5.5
-d / -n skip reverse DNS lookups, which is faster. -h 8 / -m 8 limit the trace to the first 8 hops, which is all you need for CGNAT detection. Any public address inside China works as the target; the one used here is a public DNS server (Alibaba's 223.5.5.5).
How to read the output:
- Hop 1 is your router (for example 192.168.x.x). With the modem in router mode, hop 2 is usually the modem (for example 192.168.1.1).
- After that, if any hop in 100.64.0.0/10 appears before the first public address, that is CGNAT.
- If that segment is 10.x, combine it with step 1: if the WAN of the dialing device is also 10.x, you can safely conclude there is NAT on the ISP side.
- If a private hop is followed directly by a public address, and the dialing device's WAN is itself a public address, there is no CGNAT.
Also note that ISP backbones may use private addresses for interconnects, so a 10.x hop further down the path does not necessarily mean NAT. The deciding evidence is always the WAN address from step 1, and traceroute is only supporting evidence. Hops showing asterisks are also common; see How to read traceroute and mtr output.
Why can't a NAT type test prove whether you have a public IP?
Many people use the "NAT type" reported by a game console or a STUN tool (NAT1/NAT2/NAT3, Full Cone, Symmetric, and so on). That result describes how a NAT device maps and filters ports. It does not tell you where that NAT sits:
- A home router doing a single layer of NAT can test as any of these types.
- ISP CGNAT can also show up as a fairly permissive type.
- When two layers of NAT are stacked, the test measures their combined effect, which usually looks like the stricter of the two.
So NAT type helps you reason about P2P connectivity, but it cannot answer "do I have a public IP?" For that, go back to comparing the WAN address with the egress IP.
What does being behind CGNAT affect?
For ordinary browsing and using external services, CGNAT usually has no noticeable effect, because outbound connections work normally. What suffers is anything that requires outside parties to connect in:
| Scenario | Public IPv4 | Behind CGNAT |
|---|---|---|
| Router port forwarding (NAS, home server, remote desktop) | Works | Does not work; the ISP's NAT layer will not forward for you |
| DDNS pointing at home | Works | The name resolves to a shared egress and cannot reach your home |
| Remote development, SSH back home, letting colleagues debug a local service | Direct connection | Needs a relay, or use IPv6 |
| P2P downloads, online games | Better connectivity | Some connections may fail to establish |
| Egress IP reputation | Affected only by you | Shared with other users on the same egress |
A word on the last row. Many users can sit behind one CGNAT egress, and any IP-based risk control or rate limiting on websites treats them as a single source. How big the impact is, and why different detection sites reach different conclusions, is covered in Do shared IPs and CGNAT affect IP reputation?
No public IPv4: what else can you do?
Check for IPv6 first
Many home broadband lines now get public IPv6. There are plenty of IPv6 addresses, so NAT is generally unnecessary, and the global address a device receives can be reached from outside as is. To check:
- Look at the IPv6 result on the /en/ip page and see whether an address is listed.
- Check the network adapter's addresses on your computer:
ipconfigon Windows,ifconfigon macOS,ip -6 addron Linux. Addresses starting with 2 or 3 are global addresses. Addresses starting with fe80 are link-local and cannot be used for access from outside.
Having IPv6 does not mean inbound connections work immediately: modems and routers usually enable an IPv6 firewall by default, so you need to open the ports you want, and the connecting side must also have IPv6. The prefix may change when you redial, so if you use DDNS you need to update the AAAA record. To confirm whether you are on IPv4 or IPv6, see What is the difference between IPv4 and IPv6. For cases where the two egresses differ while a proxy is on, see IPv6 proxy not working: troubleshooting dual-stack egress mismatch.
Ask your ISP for a public IPv4
In some regions you can ask the ISP to switch your home broadband to a public IPv4. Whether this is possible and under what conditions varies by region and plan, so go by what your local ISP tells you. After the change, redial and run the three steps above again to verify.
Use a relay or tunnel
If neither of the above works, you can host the service on a server that has a public address, or use a reverse tunnel so your home device connects out and a server forwards the traffic. These approaches require you to maintain a server and to comply with local rules on providing services to the outside.
One-page checklist
- Work out which device dials: the modem in router mode, the router in bridge mode.
- Read the IPv4 of the dialing device's INTERNET connection, ignoring TR069, IPTV and VOIP connections.
- Turn off proxies and VPNs, note the egress IPv4 on /en/ip, and confirm the routing check shows direct mainland China access.
- Compare: identical means public; WAN in 100.64.0.0/10 means CGNAT; WAN in a private range such as 10.x is almost certainly CGNAT.
- If unsure, run
tracert -d -h 8ortraceroute -n -m 8and look for a 100.64 hop before the first public address. - Do not draw conclusions from NAT type tests.
- If you need inbound access, check IPv6 first, then consider asking for a public IPv4 or using a relay.
If you are debugging more than the public IP, and want to check the whole development network path, continue with the Developer network self-check list (2026 edition), which puts egress IP, DNS, IPv6 and API latency tests into one sequence. The data sources and methods behind each cdnping check are documented at /en/methodology.