What is an IP Address?
An IP address (Internet Protocol address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. IP addresses serve two primary functions: host identification and location addressing. Every device that connects to the internet—from web servers to smartphones—requires an IP address to send and receive data.
IPv4 Addresses
Format and Structure
IPv4 addresses are 32-bit numbers typically displayed in dotted decimal notation:
192.168.1.1
│ │ │ │
│ │ │ └── Fourth octet (0-255)
│ │ └── Third octet (0-255)
│ └── Second octet (0-255)
└── First octet (0-255)
Address Classes
| Class | First Octet | Default Network Bits | Purpose |
|---|---|---|---|
| A | 1-126 | /8 | Large networks |
| B | 128-191 | /16 | Medium networks |
| C | 192-223 | /24 | Small networks |
| D | 224-239 | N/A | Multicast |
| E | 240-255 | N/A | Reserved/Experimental |
Private Address Ranges
Reserved for internal networks (not routable on internet):
10.0.0.0 - 10.255.255.255 (Class A)
172.16.0.0 - 172.31.255.255 (Class B)
192.168.0.0 - 192.168.255.255 (Class C)
IPv4 Exhaustion
IPv4 provides approximately 4.3 billion addresses. Global allocation was exhausted in 2011, driving IPv6 adoption.
IPv6 Addresses
Format and Structure
IPv6 addresses are 128-bit numbers displayed in hexadecimal:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Abbreviated Format
Leading zeros can be omitted, consecutive zero groups replaced with ::
Full: 2001:0db8:0000:0000:0000:0000:0000:0001
Short: 2001:db8::1
Address Capacity
IPv6 provides 340 undecillion addresses—enough to assign unique addresses to every atom on Earth's surface multiple times over.
IP Addresses in DNS
Domain names resolve to IP addresses through DNS:
A Record (IPv4)
example.com. IN A 93.184.216.34
AAAA Record (IPv6)
example.com. IN AAAA 2606:2800:220:1:248:1893:25c8:1946
Static vs Dynamic IP Addresses
| Type | Characteristics | Use Cases |
|---|---|---|
| Static | Fixed, never changes | Servers, hosting, remote access |
| Dynamic | Assigned by DHCP, may change | Consumer internet, mobile devices |
IP Address Lookup and Tools
Common diagnostic commands:
# Find your IP
curl ifconfig.me
# DNS lookup
dig example.com A
nslookup example.com
# Reverse DNS lookup
dig -x 93.184.216.34
Security Considerations
- IP-based access control: Firewalls filter by IP address
- Geolocation: IP addresses reveal approximate physical location
- DDoS attacks: Target specific IP addresses with traffic floods
- IP reputation: Some IPs flagged for malicious activity
- NAT: Network Address Translation hides internal IPs behind public IP
Understanding IP addresses is fundamental to configuring DNS, troubleshooting connectivity issues, and managing server infrastructure.