What Is an IP Address? A Complete Guide
In This Article
Introduction to IP Addresses
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. Think of an IP address as a digital postal address that allows devices to find and communicate with each other across the internet.
Just as your home address helps mail carriers deliver letters to the right location, IP addresses ensure that data packets reach their intended destinations across the vast network of interconnected computers that make up the internet. Without IP addresses, the internet as we know it simply couldn't function.
How IP Addresses Work
IP addresses function as the foundation of how devices communicate over the internet. When you send an email, stream a video, or visit a website, your device needs to know where to send data and where responses should return.
The Basics of IP Addressing
Every IP address has two primary components:
- Network Identifier: Specifies which network the device belongs to, similar to a street name in a physical address.
- Host Identifier: Identifies the specific device on that network, comparable to a house number on a street.
How Data Travels Using IP Addresses
When you send data across the internet, here's what happens:
-
Data Packaging
Your device breaks the data into small packets and adds source and destination IP addresses to each packet.
-
Routing
Routers examine the destination IP address on each packet to determine the best path for forwarding it toward its destination.
-
Arrival
The packets arrive at the destination device, which uses the source IP address to send back any required responses.
-
Reassembly
The destination device reassembles all the packets back into the original data.
Did You Know?
IP addresses don't actually send data directly to each other. Instead, they rely on a complex infrastructure of routers that maintain tables of network routes and forward packets accordingly.
IPv4 vs. IPv6
There are two main versions of the Internet Protocol currently in use: IPv4 and IPv6. Each has distinct characteristics and was developed to address specific needs of the growing internet.
IPv4 (Internet Protocol version 4)
IPv4 is the original version of IP and still the most widely used protocol on the internet today. It uses a 32-bit addressing scheme, which allows for approximately 4.3 billion unique addresses.
A typical IPv4 address looks like this: 192.168.1.1
IPv6 (Internet Protocol version 6)
IPv6 was developed to address the anticipated exhaustion of IPv4 addresses. It uses a 128-bit addressing scheme, which provides an astronomical number of possible addresses (approximately 340 undecillion - that's 340 followed by 36 zeros!).
A typical IPv6 address looks like this: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Comparing IPv4 and IPv6
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address Length | 32 bits | 128 bits |
| Address Format | Four decimal numbers separated by dots | Eight hexadecimal blocks separated by colons |
| Number of Addresses | ~4.3 billion | ~340 undecillion |
| Configuration | Manual or DHCP | Stateless autoconfiguration, DHCPv6, or manual |
| Security | Security was added later (IPsec optional) | IPsec support recommended (not required); IPv6 is not inherently more secure than IPv4 |
| Packet Fragmentation | Done by routers and sending hosts | Done only by sending hosts |
Why IPv6 Adoption Matters
RIPE NCC (the European regional internet registry) exhausted its IPv4 pool in November 2019, one of the last regions to do so - the global pool had already run out in 2011, and North America (ARIN) in 2015. Despite this, IPv6 adoption remains slow. Organizations should prioritize IPv6 implementation to ensure long-term connectivity and reduce reliance on workarounds like NAT.
Public vs. Private IP Addresses
IP addresses are categorized as either public or private, each serving different purposes in network communication.
Public IP Addresses
A public IP address is assigned to your router by your Internet Service Provider (ISP) and is visible to the outside world. It serves as your identity on the public internet.
- Uniqueness: Must be globally unique across the entire internet
- Assignment: Provided by your ISP
- Visibility: Visible to any device on the internet
- Purpose: Allows external devices to communicate with your network
Private IP Addresses
A private IP address is assigned to devices within your local network and is not directly visible on the internet. These addresses are reserved for internal network use.
-
Range Restrictions: Limited to specific ranges defined by RFC 1918:
- Class A: 10.0.0.0 to 10.255.255.255
- Class B: 172.16.0.0 to 172.31.255.255
- Class C: 192.168.0.0 to 192.168.255.255
- Assignment: Typically assigned by your router via DHCP
- Visibility: Only visible within your local network
- Purpose: Allows devices on the same network to communicate
How They Work Together
Private and public IP addresses work together through a process called Network Address Translation (NAT). When a device with a private IP address needs to communicate with the internet, the router:
-
Receives the outgoing request from the private IP address
-
Replaces the source IP (private) with its own public IP address
-
Keeps track of this translation in a NAT table
-
When a response comes back, uses the NAT table to determine which private IP address should receive the data
Why This Matters
Understanding the difference between public and private IP addresses is essential for network troubleshooting, setting up port forwarding, configuring firewalls, and maintaining network security.
Carrier-Grade NAT (CGNAT)
Increasingly, ISPs perform NAT a second time, at carrier scale. With Carrier-Grade NAT (CGNAT) a single public IPv4 address is shared among many customers, so your router's "public" side is actually assigned an address from the 100.64.0.0/10 shared address space reserved by RFC 6598 - not globally routable, like the private ranges. The single real public address lives on the ISP's CGNAT device, which is one of the ways IPv4 has stretched to last despite exhaustion. The trade-off is that customers behind CGNAT cannot reliably host services or set up port forwarding and may appear to share a public IP with strangers; IPv6, which gives every device a routable address, sidesteps the problem entirely.
How to Find Your IP Address
Knowing both your public and private IP addresses can be useful for various purposes including network troubleshooting, remote access setup, and security verification.
Finding Your Public IP Address
The easiest way to find your public IP address is to use a specialized service like ShowMyIP.com:
-
Visit our IP checker tool
Go to ShowMyIP.com and your public IP address will be displayed prominently at the top of the page.
-
Copy or note your IP address
You can use the copy button to save your IP address for later use.
Quick Tip
Your public IP address may change periodically if your ISP uses dynamic IP assignment, which is common for residential connections. For a stable address, you might need to request a static IP from your ISP (often at an additional cost).
Finding Your Private IP Address
The method to find your private IP address varies by operating system:
On Windows:
-
Open Command Prompt (search for "cmd" in the Start menu)
-
Type
ipconfigand press Enter -
Look for "IPv4 Address" under your active connection
On macOS:
-
Click the Apple menu and select "System Settings" (called "System Preferences" on macOS Monterey and earlier)
-
Click on "Network"
-
Select your active connection and look for "IP Address"
On Linux:
-
Open Terminal
-
Type
ip addrorifconfigand press Enter -
Look for "inet" followed by your IP address
On iOS (iPhone/iPad):
-
Go to Settings > Wi-Fi
-
Tap the (i) icon next to your connected network
-
Find "IP Address" in the network details
On Android:
-
Go to Settings > Network & Internet > Wi-Fi
-
Tap on your connected network
-
Find "IP address" in the network details
Key Takeaways
IP addresses are the fundamental building blocks that make the internet work. They provide the necessary identification and location information that allows billions of devices to communicate across global networks.
Summary of Key Points
- An IP address is a unique numerical identifier that allows devices to communicate over the internet.
- IPv4 (using 32-bit addresses) is the most common format, but IPv6 (using 128-bit addresses) is needed to address the shortage of available IPv4 addresses.
- Public IP addresses are visible on the internet and assigned by your ISP, while private IP addresses are used within local networks.
- NAT (Network Address Translation) allows multiple devices with private IPs to share a single public IP address.
- Knowing how to find both your public and private IP addresses is essential for network troubleshooting and configuration.