What Is an IP Address? A Plain-English Guide

An IP address is just a numeric label identifying a device's network interface on a network that runs the Internet Protocol — it's how data finds its way to the right place. Think of it as the return address stamped on every packet your phone, laptop or server sends out.

The short answer

IP stands for Internet Protocol — the rulebook that governs how data gets split into packets, addressed, and shuttled between networks. Every single packet carries two IP addresses: a source (where it started) and a destination (where it's headed). Routers along the way just read that destination address and bump the packet one hop closer to its target, not unlike a sorting office reading the postcode on an envelope.

Strip away IP addresses and the internet has no way to tell your request for a page apart from anyone else's — let alone send the reply back to the right place. Want to see the public IP your connection is using right now? Head to the What's My IP Number page.

What an IP address looks like

Two versions of the Internet Protocol are in active use today, and honestly, their addresses don't look much alike.

IPv4 addresses

An IPv4 address is a 32-bit number, usually written as four decimal numbers between 0 and 255, separated by dots — 203.0.113.42, say. Each of those four parts gets called an octet, since it represents 8 bits. Do the math on 32 bits and you get 232 possible addresses, around 4.3 billion. That felt like an enormous number back in the early 1980s. It's nowhere near enough for the number of connected devices alive today.

IPv6 addresses

IPv6 exists to fix exactly that shortage. Its addresses stretch to 128 bits, written as eight groups of four hex digits separated by colons — something like 2001:0db8:0000:0000:0000:ff00:0042:8329. You can drop leading zeros within a group, and collapse one run of all-zero groups down to ::, which shortens that same address to 2001:db8::ff00:42:8329. 2128 possible addresses works out to roughly 3.4 × 1038 — for all practical purposes, we're never running out.

Want the deeper dive? Our guide to IPv4 vs IPv6 covers the differences in depth, and the IP address converter lets you view the same address in decimal, binary and hexadecimal form side by side.

Tip: You'll notice 203.0.113.0/24 and 2001:db8::/32 popping up in our examples here — both are reserved specifically for documentation. They never show up on the real internet, which is exactly what makes them safe to use in tutorials.

How IP addresses work

Type a website name into your browser and a whole chain of events fires off in quick succession:

  1. Your device asks a DNS resolver to translate that name (example.com, say) into an IP address — the whole process is covered in What Is DNS and How Does It Work?
  2. It builds packets addressed to that IP, tagging its own address as the source.
  3. Those packets head to your router first, which passes them along to your internet service provider (ISP).
  4. From there, routers scattered across the internet consult routing tables — built largely with the Border Gateway Protocol (BGP) — to nudge each packet toward the network that actually owns the destination address.
  5. The web server replies to that source address, and the whole thing plays out again in reverse.

IP itself doesn't make any promises — it's a "best effort" protocol, so nothing guarantees packets arrive, let alone arrive in order. That job falls to higher-level protocols: TCP handles retransmission and ordering, while UDP just leaves it to the application instead. IP sticks to addressing and routing, full stop.

Network and host parts

Every IP address splits into two pieces: a network portion and a host portion. The network portion says which network a device belongs to; the host portion pins down the specific device inside it. A prefix length or subnet mask describes exactly where that split happens — 192.168.1.0/24 or 255.255.255.0, for instance. Routers out on the internet only ever need to know how to reach the network itself, not every device sitting inside it. Want to work through the actual math? See Subnet Masks and CIDR Notation Made Simple.

Types of IP addresses

People usually describe IP addresses along two separate axes: where they can be reached from, and how they got assigned in the first place.

Public vs private

A public IP address is globally unique and reachable anywhere on the internet — your ISP hands one to your router. A private IP address, on the other hand, comes from ranges set aside for internal networks (think 192.168.0.0/16 or 10.0.0.0/8), and it only means anything inside your own home or office. Network Address Translation (NAT) is what lets your router allow a whole pile of private devices to share that single public IPv4 address. More detail lives in Public vs Private IP Addresses Explained.

Static vs dynamic

A dynamic address gets handed out automatically, usually via DHCP, and it can shift over time. A static address, by contrast, stays fixed unless somebody deliberately reconfigures it. Most home connections run on dynamic public addresses; servers and plenty of business connections stick with static ones instead. Static vs Dynamic IP Address walks through the trade-offs.

Special-purpose addresses

Address or rangePurpose
127.0.0.1 and ::1Loopback ("localhost"): the device talking to itself
169.254.0.0/16 and fe80::/10Link-local: self-assigned when no other address is available
100.64.0.0/10Shared address space for carrier-grade NAT used by some ISPs
224.0.0.0/4 and ff00::/8Multicast: one sender, many receivers
0.0.0.0"This host" or "any address", depending on context

Who assigns IP addresses?

IP addresses get allocated through a strict hierarchy. The Internet Assigned Numbers Authority (IANA) oversees the global pool and hands large blocks down to five Regional Internet Registries (RIRs): ARIN (North America), RIPE NCC (Europe, the Middle East and parts of Central Asia), APNIC (Asia-Pacific), LACNIC (Latin America and the Caribbean) and AFRINIC (Africa). Those RIRs then carve out smaller blocks for ISPs, hosting companies and large organisations, which in turn assign individual addresses down to customers and devices.

None of this is secret, either — registration records for these blocks are public. Run a WHOIS lookup on any IP address and you'll see which organisation holds that block, while its routing gets announced by an Autonomous System, identified by its own ASN.

What your IP address reveals about you

Every website and online service you connect to can see your public IP address; it has no choice, really, or it couldn't send a reply back. On its own, that address typically reveals:

  • Your ISP or network operator, along with its ASN.
  • An approximate location, usually nailing the country and often the region or city, though it rarely gets down to a street address.
  • The type of connection, sometimes — mobile, residential, business, hosting provider or VPN, for example.

What it won't hand over, though, is your name, email or exact home address to just any website. Your ISP knows exactly which customer held a given address at a given moment, and yes, that record can surface under legal process, but it's never published openly. Geolocation databases, for what it's worth, get it wrong constantly, sometimes by hundreds of kilometres; How Accurate Is IP Geolocation? explains why.

Curious what a specific address gives away? Try the IP lookup tool.

Note: Since an IP address can be shared among many people at once, through NAT or carrier-grade NAT, and can change over time anyway, what it really identifies is a connection at a moment in time — not a specific person.

Should you hide your IP address?

For most people, a visible IP address just isn't a serious risk day to day. A few sensible precautions go a long way: keep your router's firmware current, don't expose unnecessary ports to the internet, and think twice before sharing your IP in public forums or games where someone might try to flood your connection. If you want more privacy anyway, a VPN, Tor or a feature like iCloud Private Relay will show websites a different address entirely. Our guide on how to hide your IP address compares the options.

Frequently asked questions

Does every device have its own IP address?

Every network interface that speaks IP needs at least one address, so yes — your phone, laptop and smart TV each get their own private address on the home network. Out on the internet side, though, they typically share your router's single public IPv4 address instead. IPv6 changes that: each device commonly gets its own globally routable address there.

Can two devices have the same IP address?

Not on the same network — that causes a conflict every time. But two devices on different private networks absolutely can share the same address, and routinely do; 192.168.1.10 shows up constantly, because private addresses never get routed on the public internet anyway.

Is my IP address the same as my MAC address?

No, they're not the same thing at all. A MAC address is a hardware identifier that only matters on the local network segment — between your laptop and your Wi-Fi router, say. An IP address is a logical address instead, built for routing traffic across networks. And your MAC address, for what it's worth, is never visible to the websites you visit.

Why does my IP address change?

Most ISPs hand out dynamic addresses through DHCP, so change is baked in: your address can shift when the lease expires, when your router restarts, or whenever the ISP reshuffles its network. Mobile networks churn through addresses even more often than that.

How do I find my IP address?

Your public IP shows up right on the What's My IP Number page. Need your local (private) address on a specific device instead? How to Find Your IP Address on Any Device walks through it step by step.

亲自试试

使用我们的免费工具,把本指南付诸实践。

评论

分享技巧、提出问题,或说说这个工具对您是否有用。

继续阅读

已复制到剪贴板