Understanding IP Addresses: IPv4, IPv6, Subnets & More

February 16, 2026 · 9 min read · Developer

Every device connected to the internet has an IP address — it's the fundamental building block of network communication. Whether you're a developer debugging network issues, a system administrator managing servers, or simply curious about how the internet works, understanding IP addresses is essential knowledge.

What Is an IP Address?

An IP (Internet Protocol) address is a unique numerical label assigned to every device participating in a computer network that uses the Internet Protocol for communication. Think of it as a postal address for your device — it tells the network where to send data so it reaches the right destination.

IP addresses serve two primary functions: identifying the host or network interface, and providing the location of the host in the network for routing purposes. Without IP addresses, the internet simply couldn't function — there would be no way to ensure data packets reach their intended destination.

IPv4: The Original Standard

IPv4 (Internet Protocol version 4) has been the backbone of the internet since the 1980s. An IPv4 address consists of four groups of numbers separated by dots, where each group (called an octet) ranges from 0 to 255:

192.168.1.100
10.0.0.1
172.16.254.1
8.8.8.8

Each octet is represented by 8 bits, giving IPv4 addresses a total length of 32 bits. This means there are approximately 4.3 billion (2^32) possible unique addresses. While that seemed like plenty in the early days of the internet, the explosive growth of connected devices has exhausted the available IPv4 address space.

IPv4 Address Classes

IPv4 addresses were historically divided into five classes:

IPv6: The Next Generation

IPv6 was developed to solve the IPv4 address exhaustion problem. An IPv6 address is 128 bits long, written as eight groups of four hexadecimal digits separated by colons:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

This provides approximately 340 undecillion (3.4 × 10^38) unique addresses — enough to assign an IP address to every atom on the surface of the Earth and still have plenty left over. IPv6 also brings improvements in routing efficiency, built-in security (IPsec), and simplified network configuration through auto-configuration.

You can simplify IPv6 addresses by removing leading zeros and replacing consecutive groups of zeros with ::. For example, the address above becomes:

2001:db8:85a3::8a2e:370:7334

Public vs. Private IP Addresses

Not all IP addresses are visible on the public internet. Private IP addresses are reserved for internal network use and cannot be routed on the internet:

Your home router typically assigns private IP addresses (like 192.168.1.x) to your devices via DHCP. When those devices access the internet, NAT (Network Address Translation) translates the private addresses to your router's public IP address. You can check your public IP with the Wootils IP Lookup tool.

⚡ Pro Tip: Need to calculate subnets? Use the Wootils IP Subnet Calculator to instantly compute network addresses, broadcast addresses, and usable host ranges from any CIDR notation.

Subnetting and CIDR Notation

Subnetting divides a large network into smaller, more manageable sub-networks. This improves security, reduces broadcast traffic, and makes more efficient use of IP address space.

CIDR (Classless Inter-Domain Routing) notation specifies the subnet mask as a suffix. For example, 192.168.1.0/24 means the first 24 bits are the network portion, leaving 8 bits for host addresses (256 total, 254 usable):

192.168.1.0/24
  Network:   192.168.1.0
  Broadcast: 192.168.1.255
  First host: 192.168.1.1
  Last host:  192.168.1.254
  Total hosts: 254

Common CIDR prefixes include /8 (16M hosts), /16 (65K hosts), /24 (254 hosts), /28 (14 hosts), and /32 (single host). Understanding subnetting is crucial for network design, firewall rules, and cloud infrastructure configuration.

Static vs. Dynamic IP Addresses

IP addresses can be assigned in two ways:

DNS: Translating Names to IP Addresses

Nobody wants to remember 142.250.80.14 to visit Google. The Domain Name System (DNS) translates human-readable domain names (like google.com) into IP addresses. When you type a URL in your browser, a DNS resolver queries multiple servers to find the corresponding IP address.

You can investigate DNS records with the Wootils DNS Lookup tool to see A records (IPv4), AAAA records (IPv6), MX records (mail), CNAME records (aliases), and more.

Special IP Addresses

IP Address Security Considerations

Your IP address can reveal your approximate geographic location, ISP, and other metadata. Security best practices include:

  1. Use a VPN to mask your public IP address when privacy matters.
  2. Configure firewalls to restrict access based on IP ranges.
  3. Monitor access logs for suspicious IP addresses attempting unauthorized connections.
  4. Implement rate limiting per IP to prevent abuse and DDoS attacks.
  5. Use private IP ranges for internal services that don't need public access.

Essential IP Address Tools

Working with IP addresses is easier with the right tools:

Conclusion

IP addresses are the invisible infrastructure that makes the internet possible. Understanding the differences between IPv4 and IPv6, public and private addresses, subnetting, and CIDR notation gives you the foundation to troubleshoot network issues, design secure architectures, and navigate the modern internet with confidence. As the world continues its transition to IPv6, these concepts become even more relevant.

🔧 Related Wootils Tools:
IP Lookup · IP Subnet Calculator · DNS Lookup