What is CGNAT?
CGNAT is a technology where a carrier puts hundreds of subscribers online through one shared IP address.
Updated · Prokso editorial team
- CGNAT (Carrier-Grade NAT) is NAT on the carrier's side: many subscribers go online through one shared external address.
- A public IP address is visible from the internet and belongs only to you; a private one is an internal address of a carrier or router network.
- A website sees the same address for hundreds of people, so it restricts such an address carefully - this is what makes mobile proxies trusted.
- Behind CGNAT the external address can change at any time, so for proxy access a username and password are more reliable than an IP whitelist.
CGNAT, or Carrier-Grade NAT, is address translation on the carrier's side. There have long been too few free IPv4 addresses for everyone. Carriers solve this as follows: subscribers get internal addresses and go online through a small number of shared external ones.
As a result, a website sees the same address for hundreds of different people. It cannot tell them apart by IP alone. Hence the main property of mobile proxies: restricting such an address means hitting many ordinary subscribers, and websites are reluctant to do it. For the same reason the carrier can change your external address at any moment: it is not assigned to you personally. Below we cover what public and private IP addresses are, how CGNAT works, why hundreds of people sit behind a mobile IP and what this means for websites and for you.
The name stands for carrier-grade NAT. Standards and documentation also use other names for the same thing: LSN (Large Scale NAT) and NAT444, after the number of address translations between the subscriber and the website.
Public and private IP addresses: the difference
A public IP address is visible from the internet. It is unique in the world at that moment, and you can connect to it from outside. A private address works only inside some network: your home network, an office network or a carrier's network. You cannot reach it directly from the internet.
Separate ranges are set aside for private networks. RFC 1918 describes three of them, and for carrier networks with CGNAT, RFC 6598 reserved one more - 100.64.0.0/10.
| Address | Range | Where you see it |
|---|---|---|
| Private (RFC 1918) | 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 | Home and office networks behind a router, some carrier networks |
| Shared for CGNAT (RFC 6598) | 100.64.0.0/10 (from 100.64.x.x to 100.127.x.x) | The network between the subscriber and the carrier's NAT |
| Public | All other IPv4 addresses that registries assign to providers | Servers, routers with their own external address, shared carrier addresses |
More about the addresses themselves in the terms IP address, IPv4 and IPv6.
How CGNAT works
At home your router already does NAT: your phone, laptop and TV have private addresses and go online through one external address of the router. The router remembers which device opened which connection and returns the response to the right one.
CGNAT adds one more such layer, this time in the carrier's network. The subscriber's router or phone gets a private address instead of a public one, and the translation to a public address happens on the carrier's equipment. To tell subscribers apart behind one address, the carrier uses different port numbers: one subscriber's connections leave from some ports of the shared address, another's from other ports.
For the website, all these connections come from one address. Only the carrier knows who exactly is behind each of them.
Why hundreds of people sit behind a mobile IP
There are only about 4.3 billion IPv4 addresses, and far more devices on the internet. The central registry IANA handed out the last free IPv4 blocks to the regional registries back in 2011, and the European registry RIPE NCC ran out of its stock in 2019. Carriers can now get new addresses only on the secondary market.
Mobile carriers have millions of subscribers, and every phone is constantly online. Giving each of them a public address is impossible, so mobile networks almost always run behind CGNAT. Some home ISPs do the same, but for mobile carriers shared addresses are the norm. Carriers are rolling out IPv6 in parallel, where there are enough addresses for everyone, but websites reachable only over IPv4 still see a shared address.
IPv6 has so many addresses that every device can get its own public address, and the need for CGNAT disappears. But the transition takes years: some websites and networks still work only with IPv4. So carriers run both versions side by side, and for IPv4 websites subscribers still go out through shared addresses.
How CGNAT affects websites
For a website, CGNAT is the main reason to be careful with mobile addresses. A rate limit designed for one person would trigger for all users of a shared address at once. Blocking the address because of one offender would cut off hundreds of ordinary subscribers, and they would start complaining.
That is why websites with a large mobile audience rarely rely on IP alone. They look at cookies, the account, the browser fingerprint and behavior. A carrier address is not suspicious in itself: this is how most smartphone users go online. Besides, the carrier redistributes shared addresses, and today a completely different set of subscribers may be behind an address than yesterday.
There is a flip side too. If someone else behind the same shared address sent too many requests, the website may show a CAPTCHA to you as well. It does not mean you broke any rules: you simply share the address with others. More about limits in the term rate limit.
What CGNAT means for you at home
If your home internet is behind CGNAT, nobody can connect to your router from outside. Port forwarding, your own server or a camera reachable from the internet by address will not work. Apps that need incoming connections, such as some games and file sharing programs, may work worse. For ordinary browsing there is no difference.
How to check whether your internet is behind CGNAT is explained below: just compare the external address in your router settings with the one the My IP page shows without a proxy.
A public address is needed by those who open access to their devices from outside. You can often order it from your ISP separately - check the terms with your provider. A public address is not required to use proxies: connecting to gw.prokso.com with a username and password works from behind CGNAT too.
Three misconceptions about CGNAT
"Nobody can find me behind a private address." The carrier knows which subscriber a connection belonged to at a given moment. And a website recognizes you not only by the address but also by cookies, your account and the browser fingerprint.
"A website will never restrict a shared address." It can, it just does so more carefully and more often picks softer measures: a CAPTCHA, a temporary rate limit, an extra login check.
"You need a public address to use proxies." No. You connect to the proxy gateway, not the other way round, so an outgoing connection from behind CGNAT is quite enough. A public address is needed only for access via an IP whitelist, and only if it does not change.
From CGNAT to mobile proxies
A mobile proxy uses the same property of carrier networks. Your request goes online through a device in a 4G/5G carrier's network, and the website sees an ordinary shared carrier address, the same as hundreds of other subscribers have. That is why it is treated more calmly than datacenter addresses.
The same property is worth keeping in mind: the address can change at any moment, and databases often place the city by the carrier's gateway. You can choose a carrier by its network number - they are collected on the providers page. How mobile addresses differ from home ones in practice is covered in the article "Mobile vs residential proxies", and prices are on the mobile proxies page.
How to tell that your internet is behind CGNAT
Open your router settings and find the external (WAN) address. Then open the My IP page without a proxy. If the addresses match, your router has its own external IP. If the router shows an address from the 100.64.0.0/10 range (from 100.64.x.x to 100.127.x.x) or a 10.x.x.x address, there is one more ISP NAT between you and the internet.
On a smartphone with mobile data the check is even simpler: the address in the phone settings is almost always different from the one the page shows. That difference is the carrier's CGNAT.
What CGNAT means for an IP whitelist
The Prokso IP whitelist ties a plan to your external addresses, up to 5 per plan. Behind CGNAT the external address is not yours personally: the carrier can change it at any moment, and the proxy will stop recognizing your program. The program then gets an authorization error even though nothing in its settings has changed.
If you work from mobile data or with an ISP that uses CGNAT, connecting with a username and password is more reliable. This option is covered in the IP whitelist article.
How CGNAT affects mobile proxies
A mobile address in Prokso belongs to a device on a carrier network. A sticky IP on ports 10000-20000 is held for 1 to 120 minutes, but it may change earlier if the device goes offline. The port then gets a new IP from the same country.
Geolocation databases often place such an address by the carrier gateway rather than by where the subscriber really is. So with mobile proxies, rely on the country and the carrier first and treat the city as approximate.
Further reading
FAQ
Is my home internet behind CGNAT too?
Possibly: some home ISPs do this as well. But with mobile carriers it is almost always the case.
Why can't I hold an address for long because of CGNAT?
The carrier assigns the external address and can change it at any moment. It is not assigned to a specific subscriber.
What is the difference between a public and a private IP address?
A public address is visible from the internet, and you can connect to it from outside. A private one works only inside a router or carrier network, and such a device goes online through someone else's public address.
What does a 100.64.x.x address in my router settings mean?
It is the 100.64.0.0/10 range that RFC 6598 reserved for CGNAT. If your router got such an address, your ISP puts you online through a shared address.
Does CGNAT get in the way of using proxies?
No, if you connect with a username and password. Access via an IP whitelist is unreliable behind CGNAT: the external address may change, and the proxy will stop recognizing your app.
Why do websites trust mobile addresses?
Hundreds of ordinary people sit behind one carrier address. Blocking it would hit all of them, so websites restrict mobile addresses carefully and look more at behavior and the account.
Related terms
Residential $1.59, mobile $2.50, datacenter $0.65 per GB
Sign up in a minute, get access right after payment.