What is an IP address?
Updated
An IP address is a number that identifies a device or a connection on a network, so data knows where to go and where to come back to. It works like a postal address: without one, a reply has nowhere to be delivered.
IPv4 and IPv6
IPv4 addresses are 32 bits long and written as four numbers from 0 to 255, separated by dots. That allows about 4.3 billion addresses, which the world has used up.
192.168.1.10 203.0.113.7
IPv6 addresses are 128 bits long and written as eight groups of hexadecimal digits separated by colons. One run of zero groups can be shortened to a double colon. IPv6 offers far more addresses than will ever be needed.
2001:db8::1 is short for 2001:0db8:0000:0000:0000:0000:0000:0001
Public and private addresses
Some ranges are reserved for use inside a home or an office and are never routed across the internet. In IPv4 they are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Your router usually has one public address and gives every device a private one, translating between the two (this is called NAT).
Why the address a website sees may not be yours
A website sees the public address of the network you connect from, which is shared by every device behind your router. On a work network, mobile data or a VPN, one address can be shared by many people, and a VPN shows the VPN's address instead of your own.
Good to know. An address says which network a connection came from, not who is using it. Any location worked out from an address is approximate.
Related
- Subnets and CIDR notationHow CIDR notation such as 192.168.1.0/24 splits an address into a network part and a host part, and how many addresses a subnet holds.
- Public and private IP addressesWhich addresses work on the internet and which only work inside a network, and why your device and a website can see different addresses.
- Reverse DNS and PTR recordsHow an IP address can point back to a name, who controls that name, and why mail servers care.
- What is an ASN?How the internet is made of autonomous systems, what an AS number tells you about an address, and what it cannot tell you.
- MAC addresses and what they revealWhat a MAC address is, how its first digits name the manufacturer, why phones now use random ones, and what it cannot prove.
- WHOIS and RDAP: who registered a domainWhat a registration record shows, how RDAP replaced WHOIS, and why you rarely see the owner's name any more.
- NTP: how the internet keeps timeHow your device gets the right time: atomic clocks, layers of time servers called strata, and the round-trip calculation NTP uses to correct a clock.