An IP address is a numeric label assigned to a network interface so that packets travelling across an Internet Protocol network can be delivered to it. Every IP packet carries two such labels in its header, a source and a destination, and every router along the way reads the destination to decide where to forward the packet next. The original IPv4 specification, RFC 791, draws a distinction worth keeping in mind: a name says what is being sought, an address says where it is, and a route says how to get there. The IP address is the where.
Two details follow from the definition. First, the address belongs to an interface, not to a person or even strictly to a machine; a laptop can have addresses on both Wi-Fi and Ethernet, and a single interface can hold several. Second, addresses have different scopes: some are used locally, while others can be routed globally. With a typical IPv4 home connection, the public address seen by websites differs from the device's private address.
How IP Addresses Route Traffic
An address is split into a network portion and a host portion. The network portion, expressed today as a prefix length such as /24, tells routers which network the address belongs to; the host portion identifies the interface within that network. Routers do not keep a list of every device on the internet. They keep routing tables of prefixes and forward each packet using the most specific matching prefix in the routing table. The packet hops from network to network until it reaches the one whose prefix matches, where it is handed to the specific host.
Because routing is based on the destination address, the source address serves a different job: it tells the recipient where to send a reply. A web server reads the source address of an incoming request and addresses its response to it, which is why the receiving service sees a source address for the connection. A proxy can substitute its own address by making a separate connection.
Public, Private and Shared Addresses
A public IP address comes from globally assigned address space intended for internet routing; actual reachability still depends on routing and firewall policy. It is allocated to an organization or ISP through regional registries and announced to other networks so that traffic can find it. A private IP address is drawn from ranges that RFC 1918 reserves for internal use: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These blocks are not intended to be routed on the public internet, which is what allows every home router to hand out 192.168.x.x addresses without conflicting with anyone else. IPv6 has unique local addresses in fc00::/7, with fd00::/8 used for locally assigned prefixes under RFC 4193. Their scope resembles private IPv4 addressing, but they do not require the same NAT arrangement.
Private IPv4 hosts commonly reach the internet through network address translation. A NAT router rewrites the source address of outgoing packets to its own public address and keeps a table so that replies can be mapped back to the right internal host. Most home gateways use the port-translating variant described in RFC 2663 as NAPT, which lets dozens of devices share one public address by giving each connection a distinct port. The public address that a website sees is therefore the router's, not the phone's or laptop's.
Address scarcity has pushed this one level further. Many mobile and broadband providers place a second layer of translation inside their own network, called carrier-grade NAT, and number the customer-facing side from the shared block 100.64.0.0/10 reserved by RFC 6598. In that setup, many unrelated subscribers can appear to the outside world from the same public address, so treating one public IP as one household is often wrong.
IPv4, IPv6 and Address Assignment
| Property | IPv4 | IPv6 |
|---|---|---|
| Address length | 32 bits | 128 bits |
| Usual notation | Four decimal numbers, e.g. 203.0.113.7 | Eight hexadecimal groups, e.g. 2001:db8::1 |
| Address space | About 4.3 billion | Vastly larger; ordinary addressing does not require NAT |
| Private ranges | RFC 1918 blocks | Unique local addresses, fc00::/7; locally assigned fd00::/8 |
| Specification | RFC 791 | RFC 8200 |
The IPv4 vs IPv6 difference that matters most in practice is not notation but abundance. IPv4's 32-bit space ran short years ago, which is the reason NAT became widespread. IPv6's 128-bit space is large enough that each device can hold a globally unique address, and RFC 8200 notes that the bigger space also simplifies automatic address configuration. Many networks run both protocols side by side, so a device may have an IPv4 address behind NAT and public IPv6 addresses at the same time.
Assignment can be static or dynamic. A static address is configured or reserved to remain stable, though an administrator or provider can still change it. A dynamic IP can be leased by a DHCP server for a limited time; RFC 2131 describes how the client requests an address, renews the lease before it expires and must stop using the address if renewal fails. Home routers typically obtain their public address this way from the ISP, which is why consumer connections are described as having a dynamic IP even when the address stays the same for long stretches. IPv6 adds stateless autoconfiguration, in which a host builds its own address from the network prefix it hears on the link.
What an IP Address Reveals
Because public addresses are allocated in blocks to specific organizations, a destination server can look up roughly who operates the network: an ISP, a mobile carrier, a hosting company or a corporate network. Commercial geolocation databases map blocks to approximate locations, with accuracy that varies by provider and address type, and the allocation pattern hints at connection type: datacenter, residential broadband or mobile.
What the address does not reveal is the individual. One public address may front a household, an office, a café or a carrier's entire regional customer base. It can change without the user doing anything, and it can change when the same person connects from a different network. Services that correlate activity by IP therefore pair it with cookies, account logins and device fingerprints rather than relying on it alone. For anyone managing several accounts, the inverse holds: a shared or repeated address can be one correlation signal across otherwise separate sessions, but a different address does not by itself make them look unrelated.
Common Uses and Limitations
IP addresses underpin access control lists, allowlisting for administrative access, rate limiting, abuse blocking, regional content delivery and basic analytics. They are the identifier that proxies, VPNs and cloud environments present on a user's behalf, which is why those tools are discussed in terms of exit addresses.
Their limits mirror their design. An address identifies a point on the network for the purpose of delivery, not an identity for the purpose of trust. Its source field can be forged in packets where network filtering does not prevent this, although replies normally go to the claimed address, shared through NAT, reassigned through DHCP and reused across customers by hosting providers. Checking a public address through a lookup service only shows what the far end sees at that moment, which may be a router, a carrier NAT, a proxy or a VPN exit rather than the device itself.