A Complete Guide to IP Addresses, IPv4 vs. IPv6, and How VPNs Work
Jul 6, 2026
Demystifying the Web: A Complete Guide to IP Addresses, IPv4 vs. IPv6, and How VPNs Work
Have you ever wondered how an email gets from your phone to your friend’s laptop on the other side of the world? Or how Netflix knows exactly where to send the video stream for your movie night?
The invisible magic that makes all of this possible boils down to one fundamental piece of technology: the IP Address.
In this guide, we are going to break down exactly what an IP address is, look at the differences between the two main types (IPv4 and IPv6), explore how they are generated, and finally, uncover the secret behind how a VPN completely changes your digital location.
Let's dive in!
What is an IP Address?
IP stands for Internet Protocol. An IP address is a unique identifier given to every device connected to the internet or a local network.
Think of the internet as a massive, global postal service. If you want to send a letter to a friend, you need their exact home address. Without it, the mail carrier has no idea where to drop the envelope. An IP address does the exact same thing for digital data. It ensures that the information you request (like loading a website or receiving an iMessage) is sent to your exact device and not someone else's.
The Two Generations: IPv4 and IPv6
As the internet has evolved, so have the addresses we use. Today, there are two primary versions of IP addresses in use.
What is IPv4?
IPv4 (Internet Protocol version 4) is the underlying technology that has powered the internet since the 1980s. It uses a 32-bit system, which looks like a string of four numbers separated by periods.
- Example:
192.168.1.15
Because it relies on 32 bits, IPv4 can only produce about 4.3 billion unique addresses. Back in the 80s, 4.3 billion seemed like an infinite number. Today, with everyone owning smartphones, laptops, smart TVs, and smart fridges, we have effectively run out of IPv4 addresses!
What is IPv6?
Enter IPv6 (Internet Protocol version 6). Created to solve the shortage of IPv4 addresses, IPv6 uses a 128-bit system. Instead of just numbers, it uses a combination of numbers and letters (hexadecimal) separated by colons.
- Example:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Because of this massive expansion, IPv6 can support roughly 340 undecillion addresses (that’s the number 340 followed by 36 zeros). To put that into perspective, that is enough IP addresses to assign one to every single atom on the surface of the Earth. We won't be running out again anytime soon!
IPv4 vs. IPv6: What are the Differences?
Aside from just looking different, there are a few key technical distinctions between the two:
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address Length | 32-bit | 128-bit |
| Format | Numeric (Numbers only) | Alphanumeric (Numbers and letters) |
| Number of Addresses | ~4.3 Billion | ~340 Undecillion |
| Configuration | Must be configured manually or via DHCP | Auto-configuration capabilities built-in |
| Security | Security is optional/added on | IPSec (Internet Protocol Security) is required |
How are IP Addresses Generated and Assigned?
IP addresses aren't just pulled out of thin air. They follow a strict, hierarchical chain of command.
- The Global Authority (IANA): The Internet Assigned Numbers Authority is at the very top. They hold the master pool of all unassigned IP addresses.
- Regional Registries (RIRs): IANA distributes large blocks of IP addresses to five Regional Internet Registries around the globe (for example, ARIN handles North America, RIPE handles Europe).
- Internet Service Providers (ISPs): Your local internet provider (like Comcast, AT&T, or BT) requests blocks of IP addresses from their regional registry.
- Your Home (The Router): When you sign up for internet, your ISP assigns a Public IP Address to your home modem.
- Your Devices (DHCP): Finally, your home Wi-Fi router uses a protocol called DHCP (Dynamic Host Configuration Protocol) to automatically generate and assign temporary Private IP Addresses to your phone, laptop, and smart TV so they can all share the single Public IP.
The Magic of VPNs: How They Change Your IP Address
If your IP address is essentially your digital home address, it means websites, advertisers, and your ISP can see exactly where you are and what you are doing. This is where a VPN (Virtual Private Network) comes in.
When you turn on a VPN, here is exactly how it changes your IP address:
- The Encrypted Tunnel: The VPN app on your device encrypts all your internet traffic and routes it through a secure "tunnel" to a remote VPN server (which could be in another city, or another country entirely).
- The Hand-off: When your data reaches the VPN server, the server forwards your request to the website you want to visit (like Netflix or Google).
- The Masking: Because the request to the website came directly from the VPN server, the website only sees the VPN server’s IP address, not your actual home IP address.
The Result: If you live in New York, but connect to a VPN server in London, the entire internet thinks you are physically sitting in the UK. Your real IP address is hidden, keeping your physical location and browsing habits private.
Conclusion
IP addresses are the unsung heroes of the digital age. Whether it's the familiar, older IPv4 or the future-proof, alphanumeric IPv6, these unique identifiers are what keep the modern internet functioning. And thanks to tools like VPNs, we have the power to take control of our digital addresses, ensuring our online lives remain secure and private.