0
0
Intro to Computingfundamentals~6 mins

IP addresses (IPv4, IPv6) in Intro to Computing - Full Explanation

Choose your learning style9 modes available
Introduction
Imagine you want to send a letter to a friend, but you need their exact home address to make sure it arrives. Computers on the internet face the same problem: they need a unique address to send and receive information. IP addresses solve this by giving every device a unique number, like a home address, so data can find its way.
Explanation
IPv4 Addresses
IPv4 addresses are made of four numbers separated by dots, like 192.168.1.1. Each number ranges from 0 to 255. This system allows about 4 billion unique addresses, which was enough when the internet was small but is now running out as more devices connect.
IPv4 uses four numbers separated by dots to give devices unique addresses but has a limited number of addresses.
IPv6 Addresses
IPv6 was created to solve the shortage of IPv4 addresses. It uses eight groups of four hexadecimal digits separated by colons, like 2001:0db8:85a3::8a2e:0370:7334. This system can create a huge number of unique addresses, enough for the internet to grow for a very long time.
IPv6 uses longer addresses with hexadecimal numbers and colons to provide many more unique addresses than IPv4.
Why Two Versions Exist
IPv4 was the first system and is still widely used, but it can't handle the growing number of devices. IPv6 was designed to fix this problem. Both versions work together during the transition period, so devices can communicate even if they use different IP versions.
IPv4 and IPv6 coexist because IPv6 solves IPv4's address shortage while allowing devices to communicate during the transition.
Structure and Uniqueness
Each IP address must be unique on the internet to avoid confusion, like no two houses having the same address on a street. The structure of IPv4 and IPv6 ensures this uniqueness by following strict rules on how addresses are formed and assigned.
IP addresses must be unique and follow specific formats to ensure data reaches the correct device.
Real World Analogy

Think of sending a postcard to a friend. You need their exact home address to make sure the postcard arrives. If the address is too short or missing parts, the mailman won't know where to deliver it. Similarly, computers need full and unique IP addresses to send information correctly.

IPv4 Addresses → A short home address with four parts, like street number, street name, city, and zip code.
IPv6 Addresses → A longer, more detailed home address with extra information to handle many more houses.
Why Two Versions Exist → Old neighborhoods with short addresses and new neighborhoods with longer addresses, both used during a city expansion.
Structure and Uniqueness → Each house having a unique address so mail doesn't get lost or delivered to the wrong place.
Diagram
Diagram
┌───────────────┐          ┌───────────────┐
│   IPv4        │          │    IPv6       │
│  192.168.1.1 │          │ 2001:0db8::1 │
└──────┬────────┘          └──────┬────────┘
       │                          │
       │          ┌───────────────┴───────────────┐
       │          │       Internet Devices        │
       └─────────>│  Communicate using IP Address  │
                  └───────────────────────────────┘
Diagram showing IPv4 and IPv6 addresses connecting devices on the internet using unique addresses.
Key Facts
IPv4An IP address format using four decimal numbers separated by dots, allowing about 4 billion unique addresses.
IPv6A newer IP address format using eight groups of hexadecimal numbers separated by colons, allowing vastly more unique addresses.
IP Address UniquenessEach IP address must be unique on the internet to ensure data reaches the correct device.
Transition PeriodThe time when both IPv4 and IPv6 are used together to allow devices with different IP versions to communicate.
Common Confusions
IPv4 and IPv6 are completely separate and cannot communicate.
IPv4 and IPv6 are completely separate and cannot communicate. IPv4 and IPv6 can communicate during the transition period using special methods like dual-stack or tunneling.
IPv6 addresses are just longer IPv4 addresses.
IPv6 addresses are just longer IPv4 addresses. IPv6 addresses use a different format with hexadecimal numbers and colons, not just longer decimal numbers.
Summary
IP addresses act like unique home addresses for devices to send and receive data on the internet.
IPv4 uses shorter addresses but is running out of unique numbers, while IPv6 uses longer addresses to provide many more.
Both IPv4 and IPv6 work together during a transition period to keep the internet connected.