Skip to content
Fundamentals

· 5 min read

What is an IP address?

An IP address is the number that tells one device on a network where to send data meant for another. Here is what it looks like, how a request uses it, who hands it out, and what it does and does not say about you.

On this page

The short answer#

IP stands for Internet Protocol. An IP address is a number assigned to a network connection so that other devices can send data to it. It does two jobs at once. It names the connection, so a reply knows who it is for, and it locates it inside the structure of the network, so the routers in between know which direction to forward a packet.

The usual comparison is a postal address, and it holds up better than most analogies: the address is on the envelope, not inside it, every sorting office along the way reads only enough of it to pick the next hop, and the same building can be reached from many places. The important difference is that an IP address belongs to a connection, not to a person. Move your laptop from home to a café and it gets a different address; share a flat's Wi-Fi and everyone shares one.

What an IP address looks like#

Two formats are in use. IPv4 writes 32 bits as four numbers between 0 and 255, separated by dots: 203.0.113.42. That allows 4,294,967,296 addresses, which sounded like plenty in 1981. IPv6 writes 128 bits as up to eight groups of hexadecimal, separated by colons: 2001:db8::42. The number of addresses runs to 39 digits. The IPv4 vs IPv6 guide compares them in detail, including how to read the shorthand.

The addresses in this article come from ranges reserved for documentation, so none of them belongs to a real device. Yours is on the home page, with each number picked out in its own colour.

How a request uses it#

The path of one web requestA request leaves your device with a private address, your router replaces it with your public address, and it travels through your ISP and other networks to the server of the website. The reply returns the same way to your public address, and your router hands it to your device.requestreplyYour device192.168.1.14 (private)Your routerrewrites to 203.0.113.42Your ISPforwards toward the serverThe internetnetworks pass it onWebsite server198.51.100.7
One web request. Your router swaps your device's private address for the public one, and the reply takes the same road back.
  1. Your router gave your device a private address, such as 192.168.1.14, when it joined the network. That address only means something inside your home.
  2. You open a page. Your device sends a packet with that private address as the sender and the website's address as the destination.
  3. Your router rewrites the sender to the public address your ISP assigned to the connection, and remembers the swap. This is network address translation.
  4. Your ISP hands the packet to the next network, and that one to the next. Each network announces which addresses it can reach, and routers use that to choose a direction. The networks are identified by autonomous system numbers.
  5. The website's server receives the packet. The only address it can see is your public one, so that is where it sends the reply.
  6. Your router looks up the reply in its table, swaps the destination back to 192.168.1.14, and delivers it.

Before any of this, your browser had to turn the website's name into an address. That is the job of DNS, and it is a separate lookup with its own servers.

Who assigns your address#

Addresses are handed down in tiers. IANA, the Internet Assigned Numbers Authority, holds the whole pool and gives large blocks to five Regional Internet Registries. Each registry gives smaller blocks to ISPs and large organisations in its region. Your ISP then assigns one address, or on IPv6 a whole range, to your connection.

The five Regional Internet Registries
RegistryRegion
ARINCanada, the United States and parts of the Caribbean
RIPE NCCEurope, the Middle East and parts of Central Asia
APNICAsia and the Pacific
LACNICLatin America and parts of the Caribbean
AFRINICAfrica

Each publishes a searchable registry of who holds which block. A lookup reads the same data and adds the routing and location layers on top.

Most home connections get a dynamic address, leased for a while and changeable. Businesses often pay for a static one. The difference matters more than it sounds, and has its own guide.

What an IP address reveals, and what it does not#

Anyone who sees your public address can find out, from public data:

  • The network it belongs to: the ISP or organisation, and the autonomous system that announces it.
  • A rough location: usually the country, often the region, sometimes the city. This is an estimate, and it commonly points at your ISP's nearest hub rather than at you. See how accurate IP geolocation is.
  • The kind of connection: home broadband, mobile, data centre or business, which is how sites guess whether a visitor is a person or a server.
  • Sometimes a hostname, if the owner published a reverse DNS record.

What it does not reveal is just as important. It does not contain your name, your street address, your device, or anything you have browsed. The one party that can connect an address to a subscriber is your ISP, which knows which account held which address at which time. Everyone else is working from inference.

Common questions#

Is my IP address personal data?

It depends on who is asking. Regulators and courts in the EU have treated IP addresses as personal data in many settings, because an ISP can link one to a subscriber. That does not mean a stranger can. Treat it as mildly identifying: it points at a connection and a region, not at you. This is not legal advice.

Can two devices have the same IP address?

On the same network, no. Across the internet, yes, in two ways: every device behind your router shares one public address, and private addresses like 192.168.1.14 are reused by millions of separate home networks.

How many IP addresses does my device have?

Several. A typical laptop has a private IPv4 address, a shared public IPv4 address that belongs to the router, one or more IPv6 addresses, a loopback address (127.0.0.1) and a link-local address. How to find your IP address shows where each one is displayed.

Does an IP address change?

Often, yes. Rebooting the router, changing networks or waiting for a lease to expire can each give you a new one. A VPN replaces the address websites see for as long as it is connected.

Try it on your own connection

Sources and further reading

Keep reading

Published by My IP Address