[ learn ]

How IP addresses really work

Short, plain-English guides to the ideas behind every IP lookup: what an IP address is, IPv4 and IPv6, DNS and domains, NAT, ASNs and BGP, VPNs and leaks, and how far you can trust a location. Each one answers the question first, then explains.

IP basics 7 articles

DNS & domains 3 articles

Networks & routing 4 articles

Privacy & security 4 articles

Geolocation 2 articles

Go further

Put it into practice with the free API and tools: real-world scenarios with code, the full field reference, and lookups for IPs, DNS and networks.

[ Glossary ]

Quick definitions

IP address
A number that identifies a device or network interface so that data can be delivered to it. Read more about IP address →
IPv4
The original internet addressing system: 32-bit addresses written as four numbers, such as 192.0.2.1. Read more about IPv4 →
IPv6
The successor to IPv4: 128-bit addresses written in hexadecimal groups, such as 2001:db8::1. Read more about IPv6 →
Private IP address
An address from a reserved range such as 192.168.0.0/16 that works only inside a local network. Read more about Private IP address →
CIDR
A way to write an IP range as an address and prefix length, such as 203.0.113.0/24. Read more about CIDR →
Subnet mask
A dotted number such as 255.255.255.0 that marks the network part of an IPv4 address; the same as /24. Read more about Subnet mask →
NAT
Network address translation: a router lets many private devices share one public IPv4 address. Read more about NAT →
CGNAT
Carrier-grade NAT: an ISP shares public IPv4 addresses among many customers, using 100.64.0.0/10 internally. Read more about CGNAT →
Domain name
A human-readable name such as example.com that DNS maps to IP addresses. Read more about Domain name →
DNS
The Domain Name System, which turns names into IP addresses and other records. Read more about DNS →
TTL
Time to live: how many seconds a resolver may cache a DNS record before asking again. Read more about TTL →
PTR record
A reverse DNS record that maps an IP address back to a hostname. Read more about PTR record →
ASN
Autonomous system number: the number that identifies a network running its own internet routing. Read more about ASN →
BGP
Border Gateway Protocol: how networks announce their IP prefixes to each other and choose routes. Read more about BGP →
RPKI
A system of signed records stating which ASN may announce each IP prefix, used to reject hijacks. Read more about RPKI →
ISP
Internet service provider: the company that connects you to the internet and assigns your public IP. Read more about ISP →
VPN
An encrypted tunnel to a server whose IP address websites see instead of yours. Read more about VPN →
Proxy
A server that forwards requests for you, so websites see its IP address. Read more about Proxy →
Tor
A network that routes traffic through three volunteer relays so no single relay knows both ends. Read more about Tor →
WebRTC leak
When a browser reveals a hidden IP address while setting up a real-time connection. Read more about WebRTC leak →
IP geolocation
An estimate of where an IP address is used, built from registry, ISP and network data. Read more about IP geolocation →
Geofeed
A file in which a network lists the location of each of its IP prefixes (RFC 8805). Read more about Geofeed →
Bogon
An address that should never appear on the public internet, such as a private or reserved one. Read more about Bogon →

Last updated