What is an IP Address? The Comprehensive Technical Guide
Understand how Internet Protocol addresses work, their binary structure, hierarchical addressing, and role in packet routing.
An IP address (Internet Protocol address) is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication.
Much like a physical street address allows postal carriers to deliver letters to a specific mailbox, an IP address enables network routers, switches, and gateways to direct digital packets across the global Internet to their intended destination.
The Dual Role of an IP Address
Under the original Internet architecture specified in RFC 791, an IP address serves two fundamental functions:
- Host or Network Interface Identification: It identifies an individual computer, mobile phone, web server, or network printer.
- Location Addressing: It indicates where the device resides within the global network topology, allowing routers to determine the best path to reach it.
Binary Structure: From Bits to Octets
Computers process everything in binary (0s and 1s). However, humans struggle to read and memorize strings of 32 binary digits. For this reason, IPv4 addresses are converted into dotted-decimal notation.
Consider the IP address: 192.0.2.1
In binary, this is represented as four 8-bit groups (called octets):
192=110000000=000000002=000000101=00000001
Combined, the 32-bit binary stream is 11000000000000000000001000000001.
Because each octet contains 8 bits, the decimal value of any octet ranges from 0 (00000000) to 255 (11111111). This creates an theoretical maximum pool of $2^{32} = 4,294,967,296$ unique IPv4 addresses.
Network Portion vs. Host Portion
An IP address is not an unstructured flat identifier like a MAC address. Instead, it is divided hierarchically into two segments:
- Network Identifier (Network Prefix): Identifies the specific network or subnetwork managed by an ISP or organization.
- Host Identifier: Identifies the specific device or network interface on that network.
The boundary between the network and host portions is determined by a subnet mask or CIDR prefix length. For example, in 192.168.1.50/24, the /24 prefix denotes that the first 24 bits (192.168.1) identify the network, while the remaining 8 bits (.50) identify the host.
Static vs. Dynamic IP Addresses
When connecting to the Internet, devices receive their IP address through one of two mechanisms:
- Dynamic IP Addresses: Assigned temporarily by a Dynamic Host Configuration Protocol (DHCP) server. Most residential internet service providers assign dynamic IPs from a shared pool to save address space. These addresses can change when your router reboots or when the lease expires.
- Static IP Addresses: Permanently assigned and manually configured. Web servers, mail servers, and corporate VPN gateways require static IPs so that external clients and DNS records can consistently locate them without interruption.
How IP Packets Route Across the Web
When you open a web browser and load a website, your computer encapsulates data into IP packets. Every packet contains:
- Source IP: Your public IP address, so the destination server knows where to send replies.
- Destination IP: The server’s IP address.
- Payload: The encrypted HTTP/3 or TLS application data.
Routers along the way inspect the destination IP, consult their internal routing tables (populated via BGP and OSPF protocols), and forward the packet to the next adjacent router until it reaches the destination server.
Inspect the network profile for this article's featured IP
93.184.216.34