[ learn ]

What is an IP address?

Updated · 4 min read

Short answer

An IP address is a number that identifies a device or network interface on an IP network, so that data can be delivered to it, much like a postal address for packets. It comes in two versions: IPv4, like 203.0.113.7, and IPv6, like 2001:db8::7. The address websites see is usually your router's public address, assigned by your ISP, not your device's own.

What an IP address does

Everything sent over the internet is split into packets, and every packet carries two IP addresses: where it came from and where it is going. Routers along the way read the destination address and pass the packet one step closer, and the reply comes back to the source address. Without an address, a server would have no way to answer you.

"IP" stands for Internet Protocol, the basic delivery layer of the internet. It does not guarantee delivery or order; protocols on top of it, such as TCP, handle that. Names like google.com are for people: DNS turns them into IP addresses before any connection starts.

IPv4 and IPv6

There are two versions in use. IPv4 addresses are 32 bits, written as four numbers from 0 to 255, such as 8.8.8.8, which allows about 4.3 billion addresses. IPv6 addresses are 128 bits, written in hexadecimal groups, such as 2001:4860:4860::8888, which allows so many that every device can have its own. Most networks now run both side by side; see IPv4 vs IPv6 for a comparison.

Public vs private addresses

A public address is unique on the whole internet and reachable (or at least routable) from anywhere. A private address, such as 192.168.1.20, only means something inside your own network; millions of homes use the same private ranges. Your router translates between the two with NAT, so all the devices at home appear to the outside world under one public IPv4 address. More in public vs private IP addresses.

Static vs dynamic addresses

  • Dynamic addresses are handed out automatically and can change: your router gets one from the ISP, and your phone and laptop get private ones from the router, both usually by DHCP. Many home connections keep the same public address for weeks, but it can change after a router restart or a contract change.
  • Static addresses are fixed. Servers, business connections and anything that must be reachable at a known address use them, often for an extra fee from the ISP.

Who assigns IP addresses?

The chain runs from the top down. IANA manages the global pool and gives large blocks to the five Regional Internet Registries (ARIN, RIPE NCC, APNIC, LACNIC and AFRINIC). The registries allocate blocks to ISPs, hosting companies and other organisations, which in turn assign addresses to their customers. Each block is announced on the internet by a network's ASN, which is why every IP lookup shows the network that owns the address.

What an IP address reveals, and what it does not

From a public IP address anyone can look up roughly:

  • the network: the ISP or company, its ASN and the announced range, such as 8.8.8.0/24;
  • an approximate location, usually the country and often a city or region (see how IP geolocation works);
  • the type of connection: home broadband, mobile, business or a data centre, and whether it is a known VPN, proxy or Tor exit.

It does not reveal your name, your street address or your browsing history. Only your ISP can link an address to a customer at a given time, and it normally shares that only under legal process.

How to find your IP address

Open What is my IP? to see the public address websites see, with its location and network. For a script, /json returns the same as JSON. To check any other address, type it into the IP lookup or straight into the URL, such as /8.8.8.8. Your device's private address is in its network settings (or ipconfig on Windows, ip addr on Linux).

[ FAQ ]

Frequently asked questions

Does every device have its own IP address?

Every device on a network has its own address on that network, but at home they usually share one public IPv4 address through the router. With IPv6, each device normally gets its own public address.

Can my IP address change?

Yes. Most home and mobile connections get a dynamic address from the ISP, which can change after a router restart, a reconnection or a network change. A static address that never changes is usually a paid business option.

Is it dangerous if someone knows my IP address?

Not usually. Every website you visit sees it. Someone could learn your approximate area and ISP, or try to attack exposed services on your router, so keep the router updated and do not open ports you do not need.

How do I hide my IP address?

Use a VPN, a proxy, Tor or a privacy relay. Websites then see the address of that service instead of yours. Your ISP still sees that you connect to the service.

Last updated · All articles · API docs