IP fundamentals

What is an IP address?

An IP address is a network identifier used to deliver packets. It can identify a connection endpoint at a particular moment, but does not automatically identify a person or device.

Updated

How addresses work

When you open a website, your device sends packets toward the site's destination address. Replies need a route back to the source. Your operating system and routers handle this process. An address is not a permanent serial number for a laptop or phone; one device can have multiple interfaces and addresses.

Follow a request

Illustrative data · No network requests

Device192.168.1.20
Gateway192.0.2.8
WebsiteWaiting
Send request

A laptop sends a request through its local gateway.

Step 1 / 3
Read all scenarios
  1. Send request: 192.168.1.20 · 192.0.2.8 · Waiting. A laptop sends a request through its local gateway.
  2. Translate source: 192.168.1.20 · 192.0.2.8 · Sees 192.0.2.8. The example gateway translates the private IPv4 source to its public-facing address.
  3. Deliver reply: Receives reply · NAT mapping · Reply sent. The gateway uses its connection mapping to return the reply to the laptop.

Public and private addresses

Your home router may assign 192.168.1.20 to a laptop and a different private address to a phone. The router can translate both connections to one public IPv4 address. A website usually sees the public address of that gateway, not the private addresses behind it. Some providers also share addresses across households.

IPv4 and IPv6

IPv4 uses 32 bits, often displayed as four decimal numbers. IPv6 uses 128 bits, displayed in hexadecimal. Your network may support both. The address displayed by a site depends on which protocol was used for that request, so two IP tools can legitimately show different families.

What an IP can reveal

An IP lookup may identify a network organization and estimate a country or city. A mobile gateway, VPN exit or corporate network can be far from the person using it. An IP alone cannot reliably identify someone's name, precise home, or whether their connection is safe.

Working through a learning path?

Record your own progress on this browser. No account required.

Learning paths →

Try this

Open My IP on your Wi-Fi, then switch to mobile data and reload. Compare the address and network organization; do not expect the location to match your GPS position.

Inspect your own IP address →

Technical references