Your IPv4 address:
Operating system:

What is an IP address? IPv4, IPv6 and private networks

Your computer has an IP address, your router has another, and a website you open may see a third. An IP address identifies an interface on an IP network so that packets can be delivered to it. It is a network address, not a permanent identity for a person or even for one device: a computer can hold several at once, and an address can change when the connection changes.

What IPv4 and IPv6 addresses look like

IPv4 uses 32 bits and is normally written as four decimal numbers, for example 192.0.2.1. IPv6 uses 128 bits and is written as hexadecimal groups, for example 2001:db8::1. These examples come from documentation ranges and are not addresses to assign to a public server. Both protocols may be active on the same device at once.

An interface may also hold multiple IPv6 addresses with different scopes and lifetimes. Some addresses are set manually, while a router, a DHCP service or the Internet provider supplies others.

Why the address on your device differs from the one websites see

A public address can be routed on the Internet. Private IPv4 ranges cannot: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are used inside networks and are not routed directly across the public Internet. Your home router usually gives your devices private addresses and translates them with NAT, so every device in the house appears to websites under the router’s public address. The address visible in the operating system is therefore not necessarily the address a website sees.

Providers may add a second layer, carrier-grade NAT, where multiple customers share one public IPv4 address. To find out whether that applies to you, compare the WAN address shown in your router with the address an external lookup reports. If the two differ and you are not using a VPN or proxy, something between your router and the Internet is translating as well. A WAN address inside 100.64.0.0/10, the range reserved for this shared use, points the same way.

Having a public address does not make a device reachable. A firewall or the router may still prevent inbound connections.

What an IP lookup can and cannot tell you

Registration and routing records can suggest which network operator holds an address and its approximate service area. Geolocation databases can be wrong, particularly for mobile connections, VPNs, corporate gateways and recently reassigned blocks. An IP address does not reliably reveal someone’s name, street address or exact physical position.

Shared addresses weaken the link further. Because of NAT and carrier-grade NAT, knowing a public IP alone does not identify one household, account or device.

How a device gets its address and finds its neighbours

Obtaining an address is only part of local configuration. DHCP can supply the IPv4 address together with other parameters such as the default route; the DHCP article describes the exchange. After that the device still has to find its neighbours on the link before it can send them anything. IPv4 uses ARP for this and IPv6 uses Neighbor Discovery, both covered in the guide to ARP and Neighbor Discovery.

If the connection fails, start with the address

First check whether the device has an address and a default route at all. Then test in order: local connectivity, DNS resolution and access to the service you actually want. Each step that works narrows down where the fault is. When you share findings with an operator, record the time of each test, because addresses and routes can change.