Demystify Internet Protocol addresses, subnet masks, DHCP allocation, NAT routing, and why the world is transitioning to IPv6.
Calculate your numbers instantly in your browser. Fast, free, no signup.
Every device connected to the internet — your smartphone, laptop, smart TV, or home Wi-Fi router — requires a unique identifier known as an IP (Internet Protocol) address. It acts as digital postal coordinates, ensuring packets of data reach their intended destination.
Introduced in 1981 by DARPA, IPv4 formats addresses as four 8-bit octets separated by dots:
192.168.1.105
142.250.190.46 (Google DNS)
Each octet ranges from 0 to 255. Because it uses 32 bits, the maximum theoretical address space is:
2^32 = 4,294,967,296 addresses
Due to the explosion of smartphones, cloud servers, and IoT gadgets, the world officially depleted unallocated IPv4 pools in the 2010s.
IPv6 solves address exhaustion by expanding to 128 bits, written as eight groups of four hexadecimal digits separated by colons:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
This creates 3.4 × 10^38 addresses — enough for trillions of IP addresses per grain of sand on Earth.
If IPv4 addresses are exhausted, how do millions of new home devices still connect?
The answer is Network Address Translation (NAT). Your internet service provider assigns one single public IP address to your modem router. Behind the router, a local DHCP server distributes private IP addresses (commonly in the 192.168.0.x or 10.0.0.x range). When your phone requests a web page, the router swaps your private IP for the public IP, tracks the connection, and routes the response back seamlessly.
A public IP address is globally unique and routable across the internet, whereas private IP addresses (like 192.168.1.1) are reserved for internal home/office local networks behind a router.
IPv4 is limited to 4.29 billion 32-bit addresses, which the world has exhausted. IPv6 uses 128-bit addresses, providing 340 undecillion unique addresses.
Technical Architect & Lead Developer • ToolsHub Pro
Abdul Nabi is a senior software engineer and technical architect specializing in client-side Web APIs, high-performance browser computing, cryptographic validation, and privacy-first digital utility platforms. All guides on ToolsHub Pro are peer-reviewed for mathematical rigor and developer accuracy.