What Is an IP Address? Public, Private, IPv4, and IPv6

What Is an IP Address? Public, Private, IPv4, and IPv6

TL;DR: An IP address is a numeric label assigned to a device on a network so that data can be routed to and from it. Your public IP is the one the internet sees, issued by your provider; your private IP is the one your router assigns inside your home. IPv4 addresses are 32-bit numbers written as four groups (like 192.168.1.1); IPv6 addresses are 128-bit and written in hexadecimal. Neither identifies a person, but both identify a connection.

The analogy, and where it breaks

The usual explanation is that an IP address is like a postal address. It is useful up to a point: data needs a destination, and the address is how the network finds it.

The analogy breaks in two important ways. A postal address identifies a place, while an IP address often identifies a connection rather than a device — many devices can share one public address through a router, and one device can change address simply by reconnecting. And unlike a home address, an IP address is routinely reassigned, which is why the same number can belong to different people at different times.

That second point matters for anyone worried about privacy: an IP address is more like a temporary phone number than a home address.

Public and private addresses

This distinction explains most of the confusion people have when they look up their own IP and see two different answers.

Your private IP is assigned by your router, and it is only meaningful inside your network. The common ranges are reserved for exactly this purpose: 192.168.x.x, 10.x.x.x, and 172.16.x.x through 172.31.x.x. Every home network in the world reuses these, which is why they are not routable on the internet.

Your public IP is assigned by your internet provider and is what websites see. Your router performs network address translation, rewriting outgoing traffic so that all your devices appear to come from that single public address.

So if you check your IP on your phone and on your laptop and get the same public address, nothing is wrong. If you check inside your network settings and see different addresses, that is the private range, and it is also correct.

IPv4 and IPv6

There are two versions in use, and they coexist rather than compete.

IPv4 is the familiar format: four numbers from 0 to 255, separated by dots. It provides about 4.3 billion addresses, which was more than enough in 1981 and is far too few now. The shortage is why address sharing and translation are universal.

IPv6 is 128-bit, written as eight groups of four hexadecimal digits, often abbreviated with a double colon. It provides an astronomically large address space, which removes the need for sharing at the scale IPv4 requires.

Most networks run both, and most devices prefer IPv6 when it is available. That produces a practical oddity: the same lookup can return different results depending on which protocol your connection negotiated, which is a common source of “my IP changed” confusion that has nothing to do with anything changing.

What an IP address can and cannot tell you

This is where expectations usually exceed reality.

It can tell you the provider or organisation that owns the address block, an approximate geographic area — usually city-level at best, often wrong — and whether the connection is residential, mobile, or commercial.

It cannot tell you a person’s name, a street address, or which specific device on a shared connection made a request. That information lives with the provider, and obtaining it requires legal process.

Geolocation accuracy is worth emphasising because it is the most overestimated. Databases infer location from registration records and observed routing, and the result can be off by a neighbouring city or several hundred kilometres, particularly for mobile connections where traffic exits through a regional hub.

Why your address changes

Four ordinary reasons, none of which indicate a problem.

Reconnecting. Many providers assign a dynamic address that changes when the connection drops or the router restarts.

Switching networks. Turning off Wi-Fi and using mobile data changes your public address immediately, because you are leaving through a different provider.

Using a VPN. A VPN routes traffic through a server elsewhere, so websites see that server’s address instead of yours. This is the intended behaviour, not a fault.

Carrier-grade NAT. Mobile and some fixed connections share one public address among many customers, so the address you see may be shared with strangers.

The practical implication: an IP address is a reasonable way to check whether a VPN is working, and a poor way to identify a person.

Static versus dynamic

A static address is fixed to your connection and stays the same. A dynamic one is assigned from a pool and can change at any time, which is what most residential connections use.

Static addresses matter for hosting: running a server, allowing remote access, or whitelisting an address for an API. Dynamic addresses need a workaround — a dynamic DNS service that updates a hostname as the address changes.

If you are checking whether you have one or the other, the test is to note the address, restart the router, and look again. If it is identical after several days, it is probably static; if it changes, it is not.

Checking your own

Three facts are worth knowing about your own connection: the public address, the private address, and whether the public one is shared.

For the private address, look in the device’s network settings. For the public one, a lookup is easier, and an IP address lookup shows the public address along with the provider and approximate location, which is also a quick way to confirm whether a VPN is active.

The short version

An IP address is a routing label, not an identity. Public addresses come from your provider and are what the internet sees; private ones are local and reused everywhere. IPv4 and IPv6 coexist, addresses change for ordinary reasons, and geolocation is approximate by nature rather than precise.

Similar Posts