Public vs Private IP Addresses, NAT, and CGNAT Explained

Understand the difference between the address your device uses at home and the one websites see, recognise private ranges at a glance, and find out whether your provider puts you behind carrier-grade NAT.

Published by SpeedTesting.dev · Updated · 4 min read

Quick answer

Your device has a private address that only works inside your network; websites see your router’s public address. If your router’s WAN address is in 100.64.0.0/10 or differs from the IP websites see, you are behind carrier-grade NAT.

Why You Have Two IP Addresses

If you check your computer's network settings, you will probably see an address such as 192.168.1.23. If you visit What Is My IP?, you will see something completely different. Both are correct. The first is your private address, used only inside your home network. The second is your public address, the one the rest of the internet sees.

This split exists because there are not enough IPv4 addresses for every device in the world. The roughly 4.3 billion possible IPv4 addresses ran out years ago, so homes and businesses use reusable private addresses internally and share one public address through a process called network address translation (NAT), performed by the router.

How to Recognise Private and Special Addresses

These ranges are reserved and never appear as normal public addresses on the internet:

  • 10.0.0.0 to 10.255.255.255 (10.0.0.0/8): private, common in larger networks and some ISP routers.
  • 172.16.0.0 to 172.31.255.255 (172.16.0.0/12): private. Note that 172.32.x.x and above are public.
  • 192.168.0.0 to 192.168.255.255 (192.168.0.0/16): private, the most common range for home routers.
  • 100.64.0.0 to 100.127.255.255 (100.64.0.0/10): shared address space reserved for carrier-grade NAT inside ISP networks.
  • 169.254.0.0 to 169.254.255.255: link-local, assigned automatically when a device cannot get an address. If your device shows one, it is not getting an address from the router's DHCP server: reconnect to the network or restart the router.
  • 127.0.0.0/8: loopback; 127.0.0.1 always means "this device".

For IPv6, addresses starting with fe80: are link-local, and those starting with fd or fc are unique local (the IPv6 equivalent of private). Most other IPv6 addresses on your device, often beginning with 2, are globally routable. Our IPv6 guide explains why IPv6 usually does not need NAT at all.

To check the size and boundaries of any range, use the subnet calculator.

How NAT Works in Your Router

When your laptop at 192.168.1.23 opens a web page, the request goes to the router. The router replaces the private source address with its own public address, picks a source port number, and records the mapping in a table. When the reply arrives at that port, the router looks up the table and forwards it to your laptop.

This has two side effects. First, every device in your home appears to the outside world as the same public address. Second, unsolicited incoming connections have nowhere to go, because the router has no table entry telling it which device should receive them. That is a modest security benefit, and it is also why hosting a game server, a camera, or a remote desktop at home requires port forwarding.

Carrier-Grade NAT: When Even Your Router Has a Private Address

Many internet providers, particularly mobile networks, fixed-wireless services, and some fibre and cable operators, no longer give each customer a public IPv4 address. Instead, they put customers behind carrier-grade NAT (CGNAT), a second layer of NAT inside the provider's network. Hundreds or thousands of customers can share one public address.

How to tell whether you are behind CGNAT:

  • Log in to your router (its address is the default gateway shown by ipconfig on Windows or "route -n get default" on macOS) and find the WAN or internet IP address on its status page.
  • Compare it with the address shown on What Is My IP?.
  • If the router's WAN address is in 100.64.0.0/10, or in a private range, or simply different from what websites see, there is NAT beyond your router.

CGNAT usually works fine for browsing, streaming, and calls. It causes problems for anything that needs incoming connections: port forwarding will not work, some games report a strict or moderate NAT type, and remote access to home devices fails. You may also see more CAPTCHAs, because you share an address with many strangers.

Working Around CGNAT

  • Ask the provider for a public IPv4 address. Some offer it free on request, some charge, and business plans usually include one.
  • Use IPv6. If your provider supports it, devices get globally reachable IPv6 addresses, and many games and remote-access tools can use them. Check with our IPv6 test.
  • Use a tunnel or overlay network for remote access, so your home device connects outward to a relay rather than waiting for incoming connections.
  • For gaming, check the NAT type with our NAT type checker and enable UPnP on your router, which helps when only one layer of NAT is involved.

Whatever you choose, test that a forwarded port is reachable from outside with the open port checker.

What Your Public IP Reveals

Your public IP address identifies your connection's network, not you personally. Lookups like our IP lookup can show the provider and an approximate location, typically a city or region, and often not even that accurately. Only the provider can match an address and time to a specific customer account, and it generally discloses that only under legal process.

Your private address reveals nothing outside your network. Sharing a screenshot that contains 192.168.1.23 tells people only that you use a common home router range.

Related Articles

Useful tools