Packet.School
HomeLevelsSandboxPricingAbout
XP1,240
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

IP (Internet Protocol) Address is a device's unique address on the network. Just like your home address!

Duration
3min
Level
L1
Type
Simulation
Progress
2/ 5

01What is IPv4?

The most commonly used IP format: 192.168.1.1

  • 32-bit address (4 octets × 8 bits)
  • Each octet takes values from 0-255
  • Total of ~4.3 billion unique addresses
  • Used since 1981

IPv4 Structure

code
192.168.1.1
 │   │   │ │
 │   │   │ └─ Host (0-255)
 │   │   └─── Subnet (0-255)  
 │   └─────── Network (0-255)
 └─────────── Network (0-255)

02What is IPv6?

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)
  • Total of 340 undecillion addresses (340 × 10³⁶)
  • Defined in 1998, becoming widespread today

IPv6 Shortening Rules

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

- Leading zeros are omitted (0db8 → db8)
- Consecutive zero groups shown as ::

03Why Transition from IPv4 to IPv6?

IPv4's Problem: Address Exhaustion

YearStatus
1981IPv4 designed, 4.3 billion addresses seemed enough
2011IANA's last IPv4 block distributed
2019IPv4 addresses exhausted in Europe (RIPE)
TodayManaging with NAT and IPv6 transition

IPv6 Advantages

FeatureIPv4IPv6
Address Count4.3 billion340 undecillion
Address Length32 bits128 bits
NAT RequiredYes (mandatory)No
Auto ConfigurationDHCP neededAutomatic with SLAAC
SecurityOptional IPsecBuilt-in IPsec
Header SizeVariableFixed (faster)

Real World Example

Number of internet-connected devices worldwide:

  • 2010: ~5 billion
  • 2025: ~75 billion (including IoT)

4.3 billion IPv4 addresses will never be enough for this many devices!

04Private IP vs Public IP

TypeIPv4 ExamplesUsage
Private10.x.x.x, 172.16-31.x.x, 192.168.x.xHome/office internal, no internet access
Public8.8.8.8, 1.1.1.1Unique on the internet
Loopback127.0.0.1 (localhost)Access to own device

05How to Find Your IP Address?

Operating SystemCommand
Windowsipconfig
Mac/Linuxip addr or ifconfig
Public IPcurl ifconfig.me

06Summary

  • IPv4: Common but addresses running out (32-bit)
  • IPv6: Future, unlimited address capacity (128-bit)
  • Transition ongoing, both work together (Dual Stack)

In the simulation below, you'll better understand the IP address concept!

Previous
What is a Network?
Next
MAC Address
On this page
  • What is IPv4?
  • What is IPv6?
  • Why Transition from IPv4 to IPv6?
  • Private IP vs Public IP
  • How to Find Your IP Address?
  • Summary
Packet.School

An open, interactive curriculum for computer networking.

v3.0 · MIT22 lessons live

Learn

  • Lessons
  • Sandbox
  • Levels
  • Pricing
  • 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 licensed☕ Support with a coffeebuilt in the open · last updated 2026.05.14