Black Friday: 15% off residential proxies with code BF15 on orders from $10. Until December 1.Buy now →

Public and private IP addresses, CGNAT: why hundreds of people share one mobile IP

A public address is reachable from the internet, a private one works only inside its network. We explain how NAT and CGNAT work, how to check your address and why sites restrict mobile IPs carefully.

Prokso editorial team Updated 11 min read Guides
Public and private IP addresses, CGNAT: why hundreds of people share one mobile IP
Key takeaways
  • A public IP address is unique on the internet; a private one works only inside a home, office or carrier network.
  • NAT lets many devices go online from one public address; CGNAT does the same at the provider level for thousands of subscribers.
  • CGNAT has its own range, 100.64.0.0/10 (RFC 6598): an address from 100.64.x.x to 100.127.x.x on your router means a private IP.
  • To check your address, compare your router's WAN IP with what the My IP page shows.
  • Hundreds of people often share one mobile IP, so sites restrict such addresses more carefully - this is what mobile proxies rely on.

In some countries people call them "white" and "grey" IPs, but the official terms are public and private addresses. The difference is simple: a public address can be reached from anywhere on the internet, while a private one works only inside its own network.

This difference explains a few things that otherwise seem odd. Why you cannot open access to a home camera from outside. Why a site sometimes asks for a CAPTCHA even though you did nothing. And why sites are reluctant to block mobile addresses. Let us go through them one by one.

The terms on one screen

TermWhat it meansExample
Public addressUnique on the internet, can be reached from outsideThe address sites see
Private addressWorks only inside a network, not routed on the internet192.168.1.10 on a home network
NATReplacing the internal address with an external one at the network edgeA home router
CGNATNAT on the provider side for many subscribers at onceMobile internet
Static addressDoes not change over timeAn address fixed by contract
Dynamic addressMay change after reconnectingMost home and mobile subscribers

Public or private is about whether an address is visible from the internet. Static or dynamic is about whether it changes. These are two separate properties: a public address can be dynamic, and a private one can stay fixed inside a network.

What a public IP address is

A public IP address is unique across the whole internet. Your provider assigns it from a block allocated by a regional registry: for Europe that is RIPE NCC, for North America ARIN. From such an address a site works out the country, city and network you came from, and from the network number - the ASN - the provider itself.

If a public address sits directly on your router, it can be reached from outside. That is how a home server, remote access to a video recorder or a game server for friends work: you open a port on the router, and a request from the internet reaches the right device.

A public address does not mean it is yours forever. Most home providers assign public addresses dynamically: after a router restart or a line outage the address may change. If you need the same address for months, ask the provider specifically for a static public address. More on the difference in the glossary: static IP address.

Private IP addresses and private ranges

A private address works only inside a network. Routers on the internet do not forward such addresses, so the same private addresses can exist at the same time in millions of different homes and offices. The ranges for this are reserved in RFC 1918, and a separate range for carriers in RFC 6598.

RangeWhere you see it
10.0.0.0/8Office and provider networks
172.16.0.0/12Corporate networks, Docker
192.168.0.0/16Home routers
100.64.0.0/10CGNAT of providers and mobile carriers

A suffix like /10 is the block size in CIDR notation. The range 100.64.0.0/10 covers addresses from 100.64.0.0 to 100.127.255.255, which is more than four million addresses.

NAT: how a private address gets online

If a private address is not visible on the internet, how does your laptop with the address 192.168.1.10 work? Through NAT, network address translation. The router has one public address from the provider and gives private ones to all devices at home.

When the laptop contacts a site, the router replaces the laptop's private address in the request with its own public one and remembers which device and port the request came from. The site's reply arrives at the public address, the router looks it up in its table and passes it to the laptop. The site sees only the router's address.

The result: all devices at home go online from one address. To a site, your phone, laptop and TV are one IP. That is normal, and sites are used to it: a home address usually has several people behind it.

CGNAT: the same NAT, but at the provider

Free IPv4 addresses have run out. The central registry IANA handed out the last large blocks to regional registries in February 2011, and RIPE NCC gave out its last free IPv4 addresses in November 2019. The number of subscribers keeps growing, but the number of public addresses does not.

Providers solve this with CGNAT (Carrier-Grade NAT). A subscriber gets a private address instead of a public one, most often from the 100.64.0.0/10 range that RFC 6598 set aside for exactly this. The provider's equipment then performs one more translation and lets many subscribers out to the internet through a small set of shared public addresses.

At home this means double NAT: first the router replaces the laptop's address with the router's private address, then the provider replaces the router's private address with a shared public one. On mobile internet there is no router: the phone gets a private address from the carrier directly.

Regular NATCGNAT
Where it runsHome or office routerProvider equipment
People behind one public addressOne household or officeDozens, hundreds, sometimes more
Who controls portsYou, in the router settingsOnly the provider
Can you open a port to the outsideYesNo, not without the provider
Address on your routerPublicPrivate, often 100.64.x.x-100.127.x.x

Example: a request's path from home to a site

Say you are behind CGNAT and open a site from your laptop. The addresses below are illustrative: 203.0.113.25 comes from a range that RFC 5737 reserves for examples in documentation.

HopSender addressWho replaces it
Laptop → router192.168.1.10Nobody, this is the home network
Router → provider100.72.15.3The router: first NAT
Provider → site203.0.113.25Provider equipment: CGNAT

The site sees only the last address, 203.0.113.25. Your neighbors on the same provider may have the same address at the same minute, and the site cannot tell you apart from them by IP. The reply travels the same way back: the provider finds your router in its table, and the router finds your laptop.

The My IP page will show 203.0.113.25, while the router's WAN section will show 100.72.15.3. The difference between the two is the sign of CGNAT.

How to tell whether your address is public or private

The check takes a minute, and you do not need to install anything.

  1. Turn off VPNs and proxies on the device, otherwise you will not see your own address. How to do it is explained in the article How to turn off a proxy.
  2. Open the My IP page and note the address sites see.
  3. Open your router settings (usually 192.168.0.1 or 192.168.1.1) and find the external address: the Internet, WAN or Status section.
  4. Compare the two addresses.
What the router shows (WAN)What it means
The same as My IPA public address on the router; you can open ports
100.64.x.x-100.127.x.xThe provider's CGNAT; the address is private
10.x.x.x, 172.16.x.x-172.31.x.x, 192.168.x.xA private address: another NAT at the provider or a second router on your side
A different public addressTraffic goes through one more node: a VPN, a proxy or provider load balancing

On a phone with mobile internet you can skip the router. Look up the IP address in the phone's network settings and compare it with My IP. If they differ, you are behind the carrier's CGNAT. That is almost always the case.

What does not work behind a private address

For browsing, video and messengers a private address is no worse than a public one. The difference shows up when something needs to connect to you from outside.

  • Open ports. Port forwarding on your router does nothing: an incoming request stops at the provider's equipment.
  • Home server, NAS, cameras, video recorder. Without a public address, outside access works only through the vendor's cloud or a separate tunnel.
  • Some games and P2P. Games may show "strict NAT", and connections between players work worse.
  • CAPTCHAs for no reason. You share an address with strangers. If one of them sent too many requests, the site may check you too.

What you can do: ask your provider for a public address (many offer it as a separate service), use IPv6 if your provider supports it, or use a tunnel through a server with a public address. For everyday use there is nothing to change.

Why a site sometimes gets your city wrong

Geolocation databases work out the city from the public address. Behind CGNAT that address belongs to a provider node, not your home, and the node may be in a regional center or even another region. So a site sometimes shows a neighboring city or the city where the carrier's equipment is. On mobile internet this happens even more often.

Databases usually get the country right, but the city can be off, especially for mobile addresses. How these databases work and why they disagree is explained in the glossary: IP geolocation.

Private addresses and security

NAT was not designed as protection, but it works as one as a side effect: nobody outside can start a connection to a device behind NAT until the device itself reaches out. Behind CGNAT your router is not directly visible from the internet at all.

With a public address, your router is reachable by anyone scanning addresses. If you get one, update the router firmware, change the default admin password and open only the ports you really need. A private address spares you this, but it also gives you fewer options.

Why hundreds of people share one mobile IP

Mobile carriers have far more subscribers than public IPv4 addresses. That is why mobile internet almost always runs through CGNAT: thousands of phones in a city go online through a small set of the carrier's shared addresses.

This is what a site sees. Within an hour, hundreds of different people arrive from one mobile address, with different phones, browsers and accounts. The address also changes often: today a subscriber goes out through one, tomorrow through another. By the IP alone, the site cannot tell these people apart.

A mobile address belongs to the carrier's network, and the ASN shows it. You can check which carrier and city are behind an address using the article How to check a mobile proxy's carrier, ASN and city.

Why sites restrict mobile IPs carefully

Blocking a home address affects one household. Blocking a mobile one affects every subscriber behind it right now, and different ones an hour later. For a site that means lost customers and complaints, so mobile addresses are restricted more carefully, and sites rely more on other signals: cookies, the browser fingerprint, behavior in the account.

That is why mobile addresses usually have a better IP reputation than datacenter ones. This is what mobile proxies are built on: your request goes out through the same carrier network as requests from ordinary subscribers.

What this means when you choose a proxy

Proxy typeWhere the address comes fromPeople behind the addressHow sites treat it
MobileA 4G/5G carrier network behind CGNATMany subscribers at onceRestricted most carefully
ResidentialA provider's home internetUsually one household, sometimes CGNATLike an ordinary visitor
DatacenterA data centerA server of one ownerProtected sites spot them faster

Mobile proxies fit social media and mobile apps, where sites trust carrier addresses the most. Residential ones fit most sites that restrict data centers. Datacenter ones fit public sites where the address does not matter much. The first two types are compared in the article Mobile vs residential proxies.

In Prokso you can pick a mobile network more precisely than just a country: in the generator's advanced mode you set the carrier by ASN. The list of carriers with network numbers is on the providers page. A mobile address, like any address behind CGNAT, may change before the set time if the device goes offline. To check which address, country and carrier a site sees, open the My IP page through the proxy.

Residential addresses are a little more complicated. Some home providers also use CGNAT, so a home address can have more than one household behind it too. But mostly a home address is one router with a few devices behind it, and sites treat it as an ordinary visitor. More on where such addresses come from in the glossary: residential proxy and mobile proxy.

One more practical tip. If you work with an account through a mobile proxy, keep one country and one carrier for that account, and do not switch between mobile and home addresses without a reason. Use a sticky IP for the session: the address will not change mid-action, even if the carrier often reassigns addresses.

IPv6: why there will be fewer private addresses one day

IPv6 has enough addresses for everyone, so a provider can give every device a global address without NAT. Many mobile carriers already give phones IPv6 alongside IPv4. But a large share of sites still work only over IPv4, so CGNAT will stay with us for a long time. How IPv4 and IPv6 differ for proxies is covered in a separate article, IPv4 vs IPv6 proxies.

FAQ

How do I know whether my IP address is public or private?

Compare the external (WAN) address in your router settings with the address on the My IP page, with VPNs and proxies turned off. If they match, the address is public. If the router shows 100.64.x.x-100.127.x.x, 10.x.x.x or 192.168.x.x, it is private.

What is CGNAT in simple terms?

It is NAT on the provider side: many subscribers get private addresses and go online through a few shared public ones. RFC 6598 set aside the 100.64.0.0/10 range for this.

Does a private IP address hurt an ordinary user?

For websites, video and messengers, no. Problems come up with opening ports, a home server, cameras and some games. CAPTCHAs may also appear more often, because other people share the address.

Is a public IP the same as a static IP?

No. Public is about whether the address is visible from the internet. Static is about whether it changes. A public address can be dynamic and change after reconnecting.

Why are mobile IPs blocked less often?

Through CGNAT, hundreds of subscribers share one mobile address at the same time. A block would hit all of them, so sites restrict such addresses more carefully and look more at other signals. That is not a guarantee.

Do Prokso mobile proxies work through CGNAT?

Yes, these are addresses of 4G/5G carrier networks, and sites see them the same way as addresses of ordinary subscribers. You can pick the carrier by ASN in the generator's advanced mode; details are on the mobile proxies page.

Read next

Install the Prokso app