Packet.School
HomeLevelsSandboxFreeAbout
XP0
L1 · Basic Concepts
Level 1
5 lessons
  • 01What is a Network?
  • 02IP Address
  • 03MAC Address
  • 04LAN, WAN and Internet
  • 05Level 1 Quiz
Levels/L1 · Basic Concepts/Lesson 02
Simulation · 02

IP Address

An IP (Internet Protocol) address is a device's unique address on a network. What your home address does for mail, an IP address does for packets: it describes the destination.

Duration
3min
Level
L1
Type
Simulation
Progress
2/ 5

01What is IPv4?

The most common format in use: 192.168.1.1

  • 32-bit address (4 octets × 8 bits)
  • Each octet ranges 0–255
  • Roughly 4.3 billion unique addresses in total
  • In service since 1981

The two faces of an address

code
192.168.1.42
└─ network part ─┘└ host ┘

Network part → which network? (the neighborhood)
Host part    → which device on it? (the door number)

Where exactly the boundary sits is decided by the subnet mask — we'll dig into that split in Level 5.

02What is IPv6?

The next-generation IP protocol: 2001:0db8:85a3:0000:0000:8a2e:0370:7334

  • 128-bit address (8 groups × 16 bits)
  • Each group is 4 hexadecimal characters (0-9, a-f)
  • 340 undecillion addresses in total (340 × 10³⁶)
  • Defined in 1998, steadily gaining ground

IPv6 shortening rules

code
Full:  2001:0db8:0000:0000:0000:0000:0000:0001
Short: 2001:db8::1

- Leading zeros are dropped (0db8 → db8)
- Consecutive zero groups collapse to :: (only once)

03Why move from IPv4 to IPv6?

IPv4's problem: address exhaustion

YearStatus
1981IPv4 designed; 4.3 billion addresses seemed plenty
2011IANA handed out its last IPv4 block
2019Europe (RIPE) ran out of IPv4 addresses
TodayKept afloat by NAT and the IPv6 transition

IPv6's advantages

FeatureIPv4IPv6
Address count4.3 billion340 undecillion
Address length32 bits128 bits
NAT requiredYes (unavoidable)No
Auto-configurationNeeds DHCPBuilt-in via SLAAC
SecurityOptional IPsecNative IPsec
Header sizeVariableFixed (faster to process)
Feel the scale
In 2010 about ~5 billion devices were online; today, counting IoT, it's past 75 billion. 4.3 billion IPv4 addresses can never cover that — the transition isn't a preference, it's a necessity.

04Private vs public IP

TypeIPv4 examplesUse
Private10.x.x.x, 172.16-31.x.x, 192.168.x.xHome/office internal, never routed on the internet
Public8.8.8.8, 1.1.1.1Unique across the internet
Loopback127.0.0.1 (localhost)The device talking to itself

05How do you find your IP?

Operating systemCommand
Windowsipconfig
Mac/Linuxip addr or ifconfig
Public IPcurl ifconfig.me
Sandbox · CommandTerminalRun ipconfig in the safe simulator and inspect the IP and subnet mask fields in the output.Open tool

06Summary

  • IPv4: everywhere, but exhausted (32-bit)
  • IPv6: the future; practically unlimited address space (128-bit)
  • Both run side by side today (Dual Stack); the transition continues
  • Address = network part + host part; the subnet mask draws the line
Previous
What is a Network?
Next
MAC Address
On this page
  • What is IPv4?
  • What is IPv6?
  • Why move from IPv4 to IPv6?
  • Private vs public IP
  • How do you find your IP?
  • Summary
Packet.School

An open, interactive curriculum for computer networking.

v3.0 · MIT22 lessons live

Learn

  • Lessons
  • Sandbox
  • Levels
  • Free
  • About

Simulations

  • Packet Journey
  • DNS Lookup
  • DHCP Simulator
  • Subnet Calc
  • Network Builder
  • Terminal

Project

  • About
  • Changelog
  • GitHub
  • Contributing
  • Style guide

Newsletter

One short email when a new level ships. No tracking pixels.

© 2026 Packet.School — MIT licensedSupport with a coffeebuilt in the open