🌍 IP Addresses: Types & Versions (IPv4 vs IPv6)

📌 Overview

An IP (Internet Protocol) Address is a numerical label assigned to each device connected to a computer network. It serves two main functions:

  1. Identification: "Who is this device?"
  2. Addressing: "Where is this device located?"

Think of it as your Digital Address or Phone Number on the internet.


🏷️ Types of IP Addresses

1. Public vs Private IP

FeaturePublic IP 🌐Private IP 🏠
ReachabilityAccessible from anywhere on the Internet.Accessible ONLY within the local network (LAN/VNet).
CostUsually paid (Static) or assigned by ISP.Free to use.
UniquenessMust be unique globally.Must be unique only within the local network.
Example20.198.54.12 (Azure Region IP)192.168.1.1 or 10.0.0.5

2. Static vs Dynamic IP


⚔️ IPv4 vs IPv6 (The Showdown)

The internet ran out of IPv4 addresses, so IPv6 was created.

1. IPv4 (The Legacy)

2. IPv6 (The Future)

Visual Comparison Diagram

       [ IPv4 Address ]                   [ IPv6 Address ]
       (32-Bits)                          (128-Bits)

    192 . 168 .  1  .  1          2001:0db8:....:7334
     |     |     |     |            |
    [8]+[8]+[8]+[8] = 32         [Hex Groups x 8]
                                    |
   (Simple Dotted Decimal)       (Complex Hexadecimal)

☁️ Cloud Context (Azure)

In Azure (and most clouds):


💡 Hinglish Explanation (Mobile Process)

1. IP Address (Phone Number)

2. Public vs Private (Personal vs Intercom)

3. IPv4 vs IPv6 (Old vs New Numbering)


⚡ Exam Tips for AZ-900

  1. Private IPs: Remember the ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Azure VNets sit here.
  2. Public IP SKU: In Azure, Public IPs come in Basic and Standard SKUs. Standard is secure by default (requires NSG to open).
  3. IPv6: Know that it solves the address exhaustion problem, but IPv4 is still king in VNet configuration.