What Is an IP Address?

An IP address (Internet Protocol address) is a unique numeric label assigned to every device on a network so that data can be sent to and from it. It works much like a mailing address: when one device wants to communicate with another, it needs to know where to deliver the data. Without IP addresses, the routers that move traffic across the internet would have no way to know where each packet should go.

How an IP Address Works

Data travels the internet in small chunks called packets, and every packet carries a source IP address and a destination IP address in its header. Routers along the way read the destination address and forward the packet hop by hop toward the right network, much as the postal system moves a letter from one sorting facility to the next. When the response comes back, it uses the source address to find its way home.

IPv4 vs. IPv6

There are two versions of the Internet Protocol in use today. IPv4 uses 32-bit addresses written as four numbers separated by dots, such as 192.0.2.1, which allows for about 4.3 billion unique addresses. That sounded like plenty in the 1980s, but the world ran short of them. IPv6 was created to solve this: it uses 128-bit addresses written in hexadecimal groups separated by colons, such as 2001:0db8:85a3::8a2e:0370:7334, providing a practically unlimited supply.

Public vs. Private IP Addresses

A public IP address is globally unique and routable across the internet; your internet service provider assigns one to your home or office connection. A private IP address is used only inside a local network and is not reachable directly from the internet. Certain ranges are reserved for private use — 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 — which is why your laptop and phone at home often have addresses beginning with 192.168. A technique called NAT (Network Address Translation) lets many private devices share a single public address.

Static vs. Dynamic IP Addresses

A static IP address stays the same over time and is typically used for servers that need a fixed, predictable location. A dynamic IP address is assigned automatically and can change; most home devices receive one from a DHCP (Dynamic Host Configuration Protocol) server, usually the router. Dynamic addressing is simpler to manage and conserves addresses, which is why it is the default for everyday devices.

How IP Addresses Relate to DNS

Numeric addresses are hard for people to remember, so the Domain Name System (DNS) maps human-friendly names like example.com to the IP address of the server that hosts it. When you type a web address, your device first asks DNS for the corresponding IP, then opens a connection to that address. In other words, DNS is the phone book and the IP address is the actual number it looks up.

An IP address is one layer of how the internet routes traffic — see how DNS turns names into addresses, how TCP and UDP carry the data, and how HTTPS secures it in transit.

Frequently Asked Questions

IPv4 uses 32-bit addresses (about 4.3 billion total) written as four dotted numbers like 192.0.2.1. IPv6 uses 128-bit addresses written in colon-separated hexadecimal, giving an enormous address space that solves IPv4 exhaustion. The two are not directly interoperable, so the internet runs both during the long transition.

A public IP address is globally unique and reachable across the internet, assigned by your ISP. A private IP address is used only within a local network (ranges like 192.168.x.x or 10.x.x.x) and is not routable on the public internet. NAT on your router translates between the two so many private devices can share one public address.

Not on the same network at the same time — that causes an address conflict and broken connectivity. However, private addresses are reused across millions of separate home and office networks, which is fine because they are isolated behind NAT and never appear directly on the public internet.