What is an IP Address?
A practical guide to the numbers that route every request on the internet — from your first browser request to the data that comes back.
What is an IP address?
An IP address — short for Internet Protocol address — is a unique numerical label assigned to every device that connects to a network. It serves two core purposes: identifying a specific device and providing its location within the network so that data can be routed to and from it correctly.
Think of it like a postal address. When you send a letter, the postal service needs to know where to deliver it. On the internet, every request you make — loading a website, sending an email, streaming a video — must carry a destination address and a return address. Both are IP addresses.
Without IP addresses, there would be no way to direct internet traffic. Every router, server, smartphone, laptop, smart TV, and IoT sensor on a connected network has at least one IP address. Even when you're browsing incognito, your IP address is still visible to the websites you visit.
A brief history of IP addresses
The concept of IP addressing was born alongside ARPANET, the precursor to the modern internet developed by the US Department of Defense in the 1960s. Early networks used simple host tables — essentially flat lists of connected computers — but as the network grew, a more scalable system was needed.
In 1981, RFC 791 formally defined the Internet Protocol version 4 (IPv4), which established the 32-bit address format we still use today. At the time, 4.3 billion addresses seemed more than enough for a network of research institutions and universities. No one anticipated the explosive growth of the public internet, mobile devices, and eventually the Internet of Things.
By 2011, the Internet Assigned Numbers Authority (IANA) had exhausted its pool of available IPv4 addresses and distributed the last blocks to regional registries. This led to the development and gradual adoption of IPv6, which provides a vastly larger address space — 340 undecillion addresses compared to IPv4's 4.3 billion.
How IP routing actually works
When you type a URL into your browser, a complex chain of events happens in milliseconds. Understanding this process helps clarify why IP addresses are so fundamental to the internet.
- 1DNS resolution — Your browser asks a DNS (Domain Name System) server to translate the human-readable domain name (like google.com) into a numeric IP address (like 142.250.190.78). Without DNS, you'd have to memorize IP addresses for every site you visit.
- 2Packet creation — Your request is broken into small pieces called packets. Each packet contains the destination IP address, your source IP address, and a portion of the request data.
- 3Router forwarding — Packets travel through a series of routers, each one reading the destination IP address and forwarding the packet to the next hop closer to the target. A typical packet crosses 10–20 routers before reaching its destination.
- 4Server response — The destination server receives all packets, reassembles them, processes the request, and sends a response back — using your IP address as the return destination.
- 5Reassembly — Your device receives the response packets, which may arrive out of order via different routes, and reassembles them into the complete response you see on screen.
IPv4 and IPv6: the two formats
Today there are two versions of IP addresses in active use. Most devices support both, and the internet is gradually transitioning from IPv4 to IPv6.
IPv4
The original format, introduced in 1981. Uses 32 bits, expressed as four decimal numbers separated by dots. Supports approximately 4.3 billion unique addresses.
IPv6
The modern format, standardized in 1998. Uses 128 bits, expressed as eight groups of four hexadecimal digits. Supports 340 undecillion unique addresses.
Public vs private IP addresses
Not all IP addresses are equal. The internet distinguishes between public addresses — routable on the global internet — and private addresses, which are reserved for use within local networks and never transmitted across the public internet.
Public IP address
Assigned by your Internet Service Provider (ISP). This is the address that websites and online services see when you connect. It uniquely identifies your connection on the global internet.
- Globally unique and routable
- Visible to websites you visit
- Assigned and managed by your ISP
- Can change (dynamic) or stay fixed (static)
Private IP address
Assigned by your router within your local network (home, office). These addresses are used internally for communication between your devices and are not visible to the outside internet.
- Only routable within your local network
- Invisible to the public internet
- Assigned by your router via DHCP
- Can be reused by millions of networks
Reserved private address ranges (RFC 1918):
Static vs dynamic IP addresses
Your public IP address can either stay the same every time you connect (static) or change periodically (dynamic). Most residential internet connections use dynamic addresses because they allow ISPs to manage their address pools more efficiently.
Static IP address
Permanently assigned to your connection. Never changes unless you manually request it from your ISP.
- Required for hosting servers or services
- Easier to manage remote access
- Often costs extra from ISPs
- Common for businesses and developers
Dynamic IP address
Assigned from a pool each time you connect. May change when your modem restarts or after a lease period expires.
- Standard for home broadband connections
- More cost-effective for ISPs
- Adds minor difficulty to tracking over time
- Managed automatically via DHCP
What your IP address reveals about you
A common misconception is that your IP address reveals your exact home address. In reality, what it exposes is more limited — but still meaningful from a privacy standpoint.
What IS visible
- Your Internet Service Provider (ISP)
- Your approximate city or region
- Your Autonomous System Number (ASN)
- Whether you're on a VPN or proxy
- Whether your IP is flagged as suspicious
What is NOT visible
- Your exact street address
- Your name or personal identity
- The content of encrypted traffic (HTTPS)
- What other devices are on your network
- Your browsing history
Law enforcement can request subscriber records from your ISP to map an IP address to a specific customer account — but websites and advertisers cannot do this directly. That said, your IP combined with other browser fingerprinting signals can still be used to identify and track you across sites.
Special purpose IP addresses
Some IP addresses have reserved functions and are never used for regular communication. Knowing these helps when debugging network issues or reading system logs.
127.0.0.1 — Loopback
Points back to your own device. Used by developers to test network applications locally without sending traffic over the network. Also called "localhost."
0.0.0.0 — Wildcard
Represents "any address" in networking contexts. When a server listens on 0.0.0.0, it accepts connections on all available network interfaces.
255.255.255.255 — Broadcast
Used to send a message to all devices on a local network simultaneously. Routers do not forward broadcast packets, so they stay within a single network segment.
169.254.x.x — Link-local
Automatically assigned when a device cannot reach a DHCP server. If you see a 169.254.x.x address, it typically means your device failed to obtain a normal IP address from your router.
How DHCP assigns your IP address
Most devices get their IP addresses automatically through DHCP — the Dynamic Host Configuration Protocol. When your phone connects to your home WiFi, or your laptop connects to a corporate network, DHCP is working silently in the background to give your device an IP address.
The process works in four steps, often called DORA: your device sends a Discover broadcast to find DHCP servers; the router Offers an available IP address with a lease duration; your device Requests that specific address; and the router Acknowledges the assignment with a confirmation.
The IP address is leased for a set period — typically 24 hours on home networks. Before the lease expires, your device silently renews it. If the lease isn't renewed (because you disconnected), the address returns to the pool and can be assigned to another device.
NAT: how your whole house shares one IP
Here's a puzzle: if IPv4 only has 4.3 billion addresses, and there are over 5 billion smartphone users alone, how does everyone have internet access? The answer is Network Address Translation (NAT).
Your home router uses NAT to allow all your devices — phone, laptop, TV, smart speakers — to share a single public IP address assigned by your ISP. Your router assigns private IP addresses to each device internally, and when a device makes a request to the internet, the router translates that private address to the shared public IP address.
To track which response belongs to which device, the router maintains a translation table mapping private IP+port combinations to outgoing connections. When the response comes back, the router knows which device to forward it to.
How to change or hide your IP address
There are several legitimate reasons to change or mask your IP address — privacy protection, bypassing geo-restrictions, or security testing. Here are the most common methods:
Use a VPN
Routes your traffic through a VPN server, making websites see the VPN's IP address instead of yours. The most popular and reliable method. Encrypts your traffic as a bonus.
Use a proxy
Routes specific application traffic through an intermediary server. Less comprehensive than a VPN — typically only masks one application and usually doesn't encrypt traffic.
Use Tor
Routes traffic through three or more volunteer-operated nodes, making it extremely difficult to trace. Very slow compared to VPNs, but provides the strongest anonymity for sensitive browsing.
Common questions
Can someone hack me just by knowing my IP address?
Knowing your IP address alone is not enough to hack you. An attacker would also need to exploit a specific vulnerability in your device or router. However, your IP can be used as a starting point for reconnaissance. Keeping your router firmware updated and using strong passwords significantly reduces this risk.
Why does my IP address show the wrong location?
IP geolocation is an approximation, not GPS. Your IP address is mapped to your ISP's registered location, which may be a city where your ISP has its regional headquarters — not your actual street. Accuracy varies from within a few kilometers (for mobile IPs) to entire regions.
Do I get a new IP address every time I connect?
It depends on your ISP and connection type. Most home broadband connections use dynamic IPs, but the address often stays the same for months because the DHCP lease is renewed continuously. You typically get a new IP if your modem is unplugged for an extended period.
Can two devices have the same IP address?
Two devices on the same network cannot have the same private IP address simultaneously — this causes an IP conflict and breaks connectivity for one or both devices. On the global internet, two devices can share the same private IP address because they're on different networks, but public IPs must be globally unique.
What happens to my old IP address when it changes?
It returns to your ISP's pool of available addresses and may be assigned to a different customer. This is one reason why IP-based evidence in legal cases requires precise timestamps — an IP address at one time does not identify the same user at a different time.
Key takeaways
- → An IP address is a numerical label that identifies a device on a network and enables routing.
- → IPv4 uses 32-bit addresses (e.g., 192.168.1.1); IPv6 uses 128-bit addresses for a much larger space.
- → Public IPs are visible on the internet; private IPs are used only within local networks.
- → NAT lets your entire home share one public IP address via your router.
- → Your IP reveals your ISP and approximate location, not your exact address or identity.
- → VPNs, proxies, and Tor are the main methods for masking your IP address.