How-to guide

What is my IPv4 address? Public vs private IPs and IPv6 explained

Where to find your IPv4 address, why your computer shows a different one, and how IPv6 fits in.

Anyone setting up a network, VPN, server or allow-list4 min readUpdated
Short answer

Your public IPv4 address is the one websites see, shown at the top of our What is my IP page. It looks like four numbers from 0 to 255 separated by dots, such as 203.0.113.7. The address in your computer’s network settings is usually a private one (such as 192.168.1.20) that only your home or office network uses.

Public and private addresses

There are only about 4.3 billion IPv4 addresses, far fewer than devices. So homes and offices use private ranges inside (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16), and the router translates them to one public address on the way out. That translation is NAT.

Your public IPv4 address is the one that matters for allow-lists, remote access, game servers and abuse reports. It belongs to your internet provider, which is why a lookup names the provider rather than you.

CGNAT: when even your router has a private address

Many mobile and some home providers put whole neighbourhoods behind one public address, called carrier-grade NAT (CGNAT). If your router’s internet address starts with 100.64 to 100.127, you are behind it. Incoming connections and port forwarding won’t work unless your provider gives you a public address, or you use IPv6.

IPv4 and IPv6 side by side

  • IPv4: 32 bits, written as four numbers, such as 203.0.113.7.
  • IPv6: 128 bits, written in hexadecimal groups, such as 2001:db8::7. There are enough for every device to have its own.
  • Many connections have both. Websites that support IPv6 usually see that one; others see IPv4.
  • Your IPv6 address can change often on purpose (privacy addresses), while IPv4 usually changes only when the router reconnects.

Questions people ask

How do I find my IPv4 address?
Open middle.network’s What is my IP page: your public IPv4 address is shown first. On Windows, ipconfig shows your private one; on macOS and Linux, use ifconfig or ip addr.
Why is my IP address different on my computer?
Your computer shows its private address on the local network. Websites see the public address of your router or provider, after NAT.
Does my IP address show my location?
Roughly. Geolocation guesses a city from the provider’s records, often tens or hundreds of kilometres out. It never shows your street address.
Is my IPv4 address static?
Usually not on home connections: providers can change it when the router reconnects. Business plans can include a fixed (static) address.

Sources and further reading

Written by the middle.network team, who build and run these tools. Last checked 2026-11-21.