What is an IP address? Public and private, IPv4 and IPv6, and how lookups work
By the ProxyOnly team · 16 Nov 2026 · 6 min read
An IP address is the number that lets devices on a network find each other. How public and private addresses differ, what IPv4 and IPv6 are, and how lookups work.
An IP address is a number that identifies a device's connection to a network, so that other devices can send data to it. When you open a web page, your device sends packets from its address to the site's address, and the site replies to yours. Everything else in this article is detail about that idea: which addresses are shared and which are unique, how they are handed out, who owns them and what you can learn from one.
IPv4 and IPv6
Two versions are in use. IPv4 addresses are 32 bits long and are written as four numbers from 0 to 255, for example 203.0.113.9. That allows 4,294,967,296 addresses, which was not enough. On 3 February 2011 the Number Resource Organization announced that the free pool of IPv4 addresses held by IANA, the body at the top of the system, had run out, as described in its announcement. The regional registries still had their own stock to hand out, but the supply of new blocks was finished, and that is why IPv4 addresses are rented and traded.
IPv6 addresses are 128 bits long and are written as groups of hexadecimal digits, for example 2001:db8::1. That allows 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses, so every device can have a public one. The two versions run side by side, and a website may reach you over either. IPv4 vs IPv6 proxies explains what that means when you buy proxies.
Public and private addresses
Not every address can be reached from the whole internet. RFC 1918 reserves three IPv4 ranges for private networks, and homes, offices and cloud networks use them freely:
10.0.0.0/8, which is10.0.0.0to10.255.255.255172.16.0.0/12, which is172.16.0.0to172.31.255.255192.168.0.0/16, which is192.168.0.0to192.168.255.255
A router translates these private addresses into one public address when traffic leaves the network, a process called NAT. Everything at home shares that single public address, and that shared address is what websites see.
Python's ipaddress module knows the reserved ranges. We ran this on Python 3.10:
import ipaddress
for text in ["8.8.8.8", "192.168.1.10", "172.16.4.9", "172.32.0.1", "100.64.12.7", "127.0.0.1", "169.254.1.1", "2001:4860:4860::8888", "fd12:3456:789a::1"]:
ip = ipaddress.ip_address(text)
print(f"{text:22} private={ip.is_private!s:5} global={ip.is_global!s:5}")It printed:
8.8.8.8 private=False global=True
192.168.1.10 private=True global=False
172.16.4.9 private=True global=False
172.32.0.1 private=False global=True
100.64.12.7 private=False global=False
127.0.0.1 private=True global=False
169.254.1.1 private=True global=False
2001:4860:4860::8888 private=False global=True
fd12:3456:789a::1 private=True global=FalseThree of those results surprise people:
172.32.0.1is public. The private block stops at172.31.255.255, and many people assume that all of172.x.x.xis private.100.64.12.7is neither private nor global. The block100.64.0.0/10is shared address space that internet providers use for carrier-grade NAT, defined in RFC 6598. What is CGNAT explains why an address in this range means that many customers share one public address.127.0.0.1and169.254.1.1are special. The first is your own machine, and the second is a link-local address that a device gives itself when it cannot get one from the network.
IPv6 has its own private range, the unique local addresses in fc00::/7 from RFC 4193, which is why the fd12: address above is private. Examples on this blog use the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 from RFC 5737, and 2001:db8::/32 for IPv6 from RFC 3849, because those ranges are reserved for exactly that purpose.
How a device gets its address
- Some addresses are static. A person sets them by hand or a contract fixes them. Servers, and the proxies you rent for a fixed period, usually have static addresses.
- Others are dynamic. A network service called DHCP hands out an address for a limited time and may give out a different one later. Many home connections get a public address this way.
- Behind NAT, the address of your laptop and the address a website sees are different things. The laptop has a private address, and the website sees the router's public one. With CGNAT there is one more translation step above your router.
To see the public address a site gets from you, use the what is my IP tool.
Who owns an address
The top-level registry, IANA, hands out blocks to five regional internet registries: AFRINIC, APNIC, ARIN, LACNIC and RIPE NCC. They allocate to internet providers and organizations, which assign addresses to customers. Because the records are public, you can look up who holds any address. We tried three lookups on 8.8.8.8.
The first is reverse DNS, which asks for the name that an address is registered under. The second asks a free DNS service from Team Cymru which network announces the address. You reverse the four numbers and add a zone name, as Team Cymru's documentation shows:
$ dig +short -x 8.8.8.8
dns.google.
$ dig +short TXT 8.8.8.8.origin.asn.cymru.com
"15169 | 8.8.8.0/24 | US | arin | 2023-12-28"
$ dig +short TXT AS15169.asn.cymru.com
"15169 | US | arin | 2000-03-30 | GOOGLE - Google LLC, US"The second line gives the autonomous system number, the range, the country, the registry and the date the range was registered. The third turns the number into a name. The numbers in the query name are reversed, and 8.8.8.8 happens to read the same in both directions, which is why the example above works without any change. For 52.95.110.1 the query name is 1.110.95.52.origin.asn.cymru.com. It returned AS16509, named AMAZON-02, a cloud host. For 75.75.75.75 we got AS7922, named COMCAST-7922, a consumer internet provider. What is an ASN goes deeper into what these numbers mean.
The third lookup asks the registry itself using RDAP, the JSON-based lookup protocol defined in RFC 9082 and RFC 9083:
curl -s https://rdap.arin.net/registry/ip/8.8.8.8The answer is a long JSON document. The useful fields are name (GOGL), type (DIRECT ALLOCATION), startAddress (8.8.8.0), endAddress (8.8.8.255) and cidr0_cidrs, which holds 8.8.8.0/24. Each registry runs its own server, and https://rdap.org/ip/ADDRESS redirects to the right one. We saw an HTTP 302 from it.
These lookups tell you who holds the address, not who is using it right now. A hosting company can hold a block that its customers use, and an internet provider holds blocks that its subscribers share.
What an address tells you, and what it does not
- The network and its operator. The autonomous system shows whether an address belongs to a consumer provider, a cloud host or a mobile carrier. Websites use this when they decide how to treat a visitor, which is why the kind of address matters so much for proxies.
- An approximate place. Location databases combine registry data, routing and measurements. The country is usually right and the city is often a guess. IP geolocation and geo-blocking explains how far to trust it.
- Not a person. An address does not carry a name. Combined with cookies, accounts and an internet provider's records it can point to one, and what someone can do with your IP address lists what is realistic and what is not.
- Often shared. Offices, carriers behind CGNAT, VPNs and proxies put many people behind one address.
Where proxies come in
A proxy gives your traffic a different public address. Which address you borrow, one from a data center, a home connection, an internet provider's range or a mobile carrier, decides how sites treat it. The complete guide to proxy types compares the four, and what is a proxy server explains the mechanics.
Addresses are also grouped into ranges, and the notation for those ranges, such as 8.8.8.0/24, is the next thing to learn. What is a subnet explains how to read it and how to work it out by hand.
Try it yourself
Create an account, add funds from US$1 and order a proxy in the country you need.
Keep reading
16 Nov 2026 · IP addresses and privacy
Proxies, privacy and the law: a responsible-use guide
Whether using a proxy is legal, what computer misuse and data protection law say, what your provider can see about you, and a checklist for using proxies responsibly.
16 Nov 2026 · IP addresses and privacy
How to change or hide your IP address: the options compared
Seven ways to change or hide your IP address compared by what each one hides, from whom, and what it leaves exposed, with a way to check that it worked.