What Is an IP Address? A Clear Guide to IPv4, IPv6, DNS and NAT
✦ Key takeaways
- An IP address is a unique numeric identifier that lets devices talk over networks.
- IPv4 uses 32 bits (about 4.3 billion addresses) while IPv6 uses 128 bits (about 340 undecillion).
- Private addresses work inside your home network; public addresses face the wider internet.
- DNS acts like a phone book, turning human names like example.com into IP numbers.
- Your IP reveals your approximate location and provider, but not your name or home address directly.
Every time you open a web page or send a message, your data hops across many machines before reaching its destination. For those machines to know where to send data and where it came from, each needs a distinguishing address: that is the IP address.
What Exactly Is an IP Address?
An IP address (short for Internet Protocol) is a numeric identifier assigned to every device connected to a network that uses the internet protocol. Its job is twofold: to identify a device and to locate it on the network so data can be routed to it. Without this address, routers would have no way of knowing which path packets should take to arrive.
Invoice & Quotation Maker
Professional invoices that auto-calc & print/PDF in a minute.
Think of it like your postal address. The mail carrier doesn't need to know your name to deliver a parcel; they need the precise address. In the same way, data packets travel from a source address to a destination address across a vast web of routers.
IPv4 vs IPv6
There are two main versions of IP addresses. Version 4 (IPv4) is the older, most common one, written as four numbers separated by dots such as 192.168.1.10, with each number ranging from 0 to 255. Version 6 (IPv6) was created because IPv4 addresses were running out, and it is written in a longer hexadecimal form such as 2001:0db8:85a3::8a2e:0370:7334.
| Property | IPv4 | IPv6 |
|---|---|---|
| Address length | 32 bits | 128 bits |
| Number of addresses | ~4.3 billion | ~340 undecillion |
| Format | Dotted decimal | Hexadecimal with colons |
| Example | 192.168.1.10 | 2001:db8::8a2e:370:7334 |
| Separator | Dot (.) | Colon (:) |
The difference in scale is enormous. IPv4 offers only about 4.3 billion addresses, a number that seemed huge in the 1980s but became insufficient once billions of phones and smart home devices came online. IPv6 provides an astronomically larger pool that will last for many decades.
Public vs Private Addresses
Not every device gets a globally unique address. Inside your home, the router hands each device a private address used only locally. These addresses are reserved within well-known ranges, the most familiar being those starting with 192.168 on home networks.
| Private range | Span | Common use |
|---|---|---|
| 10.0.0.0/8 | 10.0.0.0 - 10.255.255.255 | Large enterprises |
| 172.16.0.0/12 | 172.16.0.0 - 172.31.255.255 | Medium networks |
| 192.168.0.0/16 | 192.168.0.0 - 192.168.255.255 | Homes and offices |
A public address, by contrast, is the single address visible to the outside world, given to your router by your internet service provider. All the devices behind the router share this one public address when they reach the internet, and the trick that makes this possible is called NAT.
NAT: How Devices Share One Address
Network Address Translation (NAT) is the mechanism by which your router swaps your devices' private addresses for its own public address when sending data to the internet, then reverses the process when a reply comes back. Thanks to NAT, dozens of devices in a single home can share one public address, which greatly relieved the pressure of IPv4 exhaustion and added a layer of protection, since your internal devices are not directly visible from outside.
Static vs Dynamic, and the Role of DNS
An address can be static, meaning it never changes, which servers and websites prefer so they are always easy to reach. Or it can be dynamic, assigned temporarily by the provider and rotated from time to time, which is most common for home users because it is cheaper and easier to manage.
Because memorizing numbers like 142.250.185.78 is hard for humans, the Domain Name System (DNS) exists. Picture it as a giant phone book: when you type example.com, your device asks a DNS server for the number matching that name, and it returns the correct IP address so the connection can begin. You remember the easy name, and DNS handles turning it into the number the network understands.
What Your IP Reveals (and What It Doesn't)
Any website you visit can see your public address, and from it can infer your country, approximate city, and the name of your service provider. This is used for legitimate purposes such as showing content in your language or preventing fraud. But the address alone does not reveal your name, phone number, or exact home address; only your provider holds that data and discloses it only under a legal request. Tools such as a VPN (Virtual Private Network) hide your real address by showing an intermediary server's address instead, giving you extra privacy while browsing.