The Ultimate Guide to IP Addresses: Public, Private, and Classes

Jay TilluJay Tillu
5 min read

The internet is like a vast city with millions of homes, and each device connected to it has its own address—an IP address. But what exactly are IP addresses, and how do they work? In this blog, we’ll dive deep into the world of IP addresses, exploring public versus private IPs, different classes of IP addresses, and much more. We'll also use easy-to-read tables to help simplify these concepts!


What is an IP Address?

An IP (Internet Protocol) address is a unique numerical label assigned to every device connected to a network. Think of it as your device’s mailing address on the digital highway. Without IP addresses, data wouldn’t know where to go, making communication over the internet impossible.


Public vs. Private IP Addresses

IP addresses come in two major types: public and private. Understanding the difference is key for networking and internet communication.

Public IP Addresses

  • Definition:
    A public IP address is assigned to your device by your Internet Service Provider (ISP) and is unique across the entire internet. Jio, Airtel, VI, AT&T, and British Telecom are one of the top ISPs in the world.

  • Purpose:
    It allows your device to communicate with other devices on the internet.

  • Usage Example:
    When you visit a website, your request is sent from your public IP address.

  • Example of Public IP:
    203.0.113.1

Private IP Addresses

  • Definition:
    A private IP address is used within a private network, such as your home or office network.

  • Purpose:
    It lets devices within the same network communicate with each other without exposing them to the public internet.

  • Usage Example:
    Your smartphone, computer, and printer at home might all use private IP addresses to connect to your router.

  • Example of Public IP:
    192.168.0.1


Comparison Table: Public vs. Private IP Addresses

FeaturePublic IP AddressPrivate IP Address
UniquenessUnique across the internetUnique within the local network
Assigned ByInternet Service Provider (ISP)Network administrator (or router via DHCP)
AccessibilityAccessible from anywhere on the internetNot directly accessible from outside the local network
UsageCommunication with external websites and servicesInternal communication between devices in the same network
SecurityMore exposed to potential threats from the internetGenerally more secure from external attacks

Classes of IP Addresses

IP addresses in IPv4 are divided into different classes, each designed to accommodate various sizes of networks. The primary classes are A, B, C, D, and E.

Class A, B, and C

  • Class A:

    • Range: 1.0.0.0 to 126.255.255.255

    • Default Subnet Mask: 255.0.0.0

    • Usage: Suitable for very large networks (e.g., major corporations or large ISPs).

  • Class B:

    • Range: 128.0.0.0 to 191.255.255.255

    • Default Subnet Mask: 255.255.0.0

    • Usage: Used by medium-to-large networks, such as universities or large companies.

  • Class C:

    • Range: 192.0.0.0 to 223.255.255.255

    • Default Subnet Mask: 255.255.255.0

    • Usage: Common for small networks like home or small business networks.

Class D and E

  • Class D (Multicast Addresses):

    • Range: 224.0.0.0 to 239.255.255.255

    • Usage: Reserved for multicast groups; these addresses are not assigned to individual hosts.

  • Class E (Experimental Addresses):

    • Range: 240.0.0.0 to 254.255.255.255

    • Usage: Reserved for experimental use and research purposes. They are not used in public networks.


Detailed Table: Classes of IPv4 Addresses

ClassIP RangeDefault Subnet MaskPurpose/Usage
A1.0.0.0 – 126.255.255.255255.0.0.0Large networks; major ISPs and large organizations
B128.0.0.0 – 191.255.255.255255.255.0.0Medium-to-large networks; universities, companies
C192.0.0.0 – 223.255.255.255255.255.255.0Small networks; home and small business networks
D224.0.0.0 – 239.255.255.255N/AMulticast addressing; used for group communications
E240.0.0.0 – 254.255.255.255N/AExperimental; reserved for future or research purposes
💡
Note: Class base IP assignments are no longer used today. New CIDR-based IP assignments replace them.

The Role of Subnet Masks

A subnet mask works hand-in-hand with an IP address. It defines which portion of the IP address is dedicated to the network and which part is for the host (the individual device). For example, in a Class C network, the subnet mask 255.255.255.0 means the first three octets identify the network, and the last octet identifies the host.

Simple Table: Subnet Mask Examples

IP Address ClassTypical Subnet MaskNetwork vs. Host
Class A255.0.0.01st octet: network, remaining: host
Class B255.255.0.01st & 2nd octets: network, remaining: host
Class C255.255.255.01st, 2nd & 3rd octets: network, 4th: host

Conclusion

From the basics of what an IP address is to the nuanced differences between public and private addresses, and the classes that define network sizes, IP addresses form the backbone of internet communication. They allow millions of devices to interact, share information, and bring the digital world closer together.

Whether you’re a tech enthusiast or a budding network administrator, understanding IP addresses is your first step into the larger world of networking. Use the tables as a quick reference guide, and let this knowledge empower you in your digital journey!

Happy networking, and may your digital path always be clear and connected!

Learn more about Compliance

Follow me for more such content

0
Subscribe to my newsletter

Read articles from Jay Tillu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jay Tillu
Jay Tillu

Hello! I'm Jay Tillu, an Information Security Engineer at Simple2Call. I have expertise in security frameworks and compliance, including NIST, ISO 27001, and ISO 27701. My specialities include Vulnerability Management, Threat Analysis, and Incident Response. I have also earned certifications in Google Cybersecurity and Microsoft Azure. I’m always eager to connect and discuss cybersecurity—let's get in touch!