Lesson 1 of 4 · 6 min
IP addresses: IPv4, IPv6, public and private
What an IP address actually is, why the internet uses two different formats, and why your laptop’s own address is not the one strangers see.
Every device that talks to the internet needs a number, not a name. The core specification of the Internet Protocol, RFC 791, says addresses “distinguish sources and destinations to the host level”, meaning each device gets its own number so packets know exactly where to go. Names like example.org are a convenience for humans, resolved to a number by DNS (covered in its own course); the network itself only understands numbers.
IPv4: four billion addresses, and not enough
The original format, IPv4, uses a 32-bit address, written as four numbers separated by dots, such as 192.0.2.1. RFC 791 defines it as “fixed length of four octets (32 bits)”. Thirty-two bits allows for about 4.3 billion unique combinations, as Cloudflare’s Learning Center explains. That sounded huge in the 1980s. It is not enough for a world of billions of phones, laptops, routers and smart devices, which is why a newer, much larger format exists.
IPv6: room for everyone, for a long time
IPv6 addresses are 128 bits long, written as groups of hexadecimal digits separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334. As RFC 8200 puts it, IPv6 “increases the IP address size from 32 bits to 128 bits, to support more levels of addressing hierarchy, a much greater number of addressable nodes, and simpler autoconfiguration.” Both versions run side by side today: your Mac usually has one address of each kind.
Public and private: the address only your router knows
Not every address needs to be reachable from the whole internet. RFC 1918 sets aside three ranges of IPv4 addresses for use inside homes, offices and other private networks:
10.0.0.0to10.255.255.255172.16.0.0to172.31.255.255192.168.0.0to192.168.255.255(the range most home routers use)
RFC 1918 is explicit that these addresses stay local: “because private addresses have no global meaning, routing information about private networks shall not be propagated on inter-enterprise links, and packets with private source or destination addresses should not be forwarded across such links.” Internet providers are expected to reject any attempt to route them onto the public internet. Only one address, usually held by your router, needs to be a public one that the rest of the internet can find; how that sharing works is the subject of the next lesson.
ipconfig getifaddr en0
192.168.1.12192.168.1.12 falls inside the private range above: it identifies this Mac on its own Wi-Fi network, but no computer on the wider internet can send a packet directly to it. Cloudflare’s Learning Center notes that most home connections also get a temporary, “dynamic” public address from the ISP rather than a fixed one, chosen from a shared pool because permanent addresses are more expensive to maintain for both the provider and every customer.
Key takeaways
- Devices are addressed by number, not name; IPv4 uses 32-bit addresses, about 4.3 billion possible combinations.
- IPv6 uses 128-bit addresses specifically to give the internet far more room to grow, per RFC 8200.
- RFC 1918 reserves three ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) for private networks; they are never routed on the public internet.
- An address like 192.168.1.12 on your Mac is private and local; your router holds the public address the rest of the internet sees.
- Most home internet connections use a temporary (dynamic) public address rather than a permanent one.
Check yourself
1. Roughly how many unique addresses does the 32-bit IPv4 format allow for?
- About 4.3 billion — Right.
- Unlimited
- About 65,000
- Exactly 1 million
32 bits gives 2^32 combinations, about 4.3 billion, which Cloudflare’s Learning Center gives as the reason IPv4 eventually ran short.
2. According to RFC 8200, why does IPv6 use 128-bit addresses instead of 32 bits?
- To make addresses shorter to type
- To support more levels of addressing hierarchy and many more addressable nodes — Right.
- To remove the need for a router
- To make Wi-Fi faster
RFC 8200 states the larger size exists “to support more levels of addressing hierarchy, a much greater number of addressable nodes, and simpler autoconfiguration.”
3. Which of these is a private IPv4 range that is never routed on the public internet?
- 192.168.0.0/16 — Right.
- 8.8.8.0/24
- 1.1.1.0/24
- 172.217.0.0/16
192.168.0.0/16 is one of the three ranges RFC 1918 reserves for private networks; the others in the list are real public addresses.
4. Your Mac shows the address 192.168.1.12. What does that tell you?
- It is the address strangers on the internet would use to reach your Mac directly
- It is a private address, valid only on your own local network — Right.
- Your Mac has no IP address
- It is your internet provider’s address
192.168.1.12 falls in the RFC 1918 private range; it identifies the Mac on its home network, not to the outside internet.
Do it with FireAI
Put this lesson into practice on your own Mac.
- Find out where an app sends data, on the World map — See exactly which company and country one app is quietly talking to.
- Rules: app, website, domain, IP or a range, forever or until you restart — Write a rule as precise as one address or as broad as an entire domain.
- Deep inspection, without decrypting anything — Get real detail on a secure connection without FireAI ever reading what’s inside it.
Sources
- RFC 791: Internet Protocol
- RFC 8200: Internet Protocol, Version 6 (IPv6) Specification
- RFC 1918: Address Allocation for Private Internets
- Cloudflare Learning: What is my IP address?
Put it into practice on your Mac
Try every feature free for 17 days, no card needed.