Complete Guide

IP location lookup — what your public IP reveals, and what it doesn't

Every device on the public internet has an IP address. That address quietly leaks a surprising amount about you — your approximate city, your internet provider, the kind of connection you're on — but also less than most people assume. This guide explains exactly what an IP lookup can and can't tell, how to find your own public IP, how IP-based geolocation actually works under the hood, and what to do when the city it reports is wrong.

Lookup an IP address


What is a public IP address?

A public IP address is the number your internet provider hands out to your home router, office network, or mobile hotspot so the rest of the internet can route packets back to you. It looks like 203.0.113.42 for the older IPv4 system or like 2001:db8::1 for the newer IPv6 system. Most home connections still get IPv4, often shared with dozens of other customers via Carrier-Grade NAT; many mobile networks have moved to IPv6.

Crucially, your private IP (something like 192.168.1.5) is completely separate. That's the address your router gives your laptop or phone on your local Wi-Fi. The outside world never sees it — only your public IP is visible to websites.


How to find your public IP — three ways

1. Use a browser tool

Easiest by far. Tap the button on the tool above and the IP, ISP, and database-guessed city appear in the dashboard panel. The dedicated IP Location tool does the same thing in a tighter standalone widget. You don't need to grant any permission — the page just reads the IP visible to the server when your browser connected.

2. Ask your router

Open your router's admin page (usually 192.168.1.1 or 192.168.0.1) in a browser. The WAN or Internet section shows the IP your ISP has assigned. This is the ground-truth source — if it disagrees with a website's reading, you're probably behind a VPN or proxy.

3. Command line

On macOS or Linux, run curl ifconfig.me or curl ipinfo.io/ip. On Windows, use PowerShell: (Invoke-WebRequest ifconfig.me).Content. The answer is your current public IP, fetched directly.


How IP geolocation actually works

When a website turns your IP into “Lahore, Pakistan” or “Mumbai, India”, it isn't reading anything from your computer. It's looking up the IP in a database. The database itself is built by companies like MaxMind, IPinfo, IP2Location, and BigDataCloud from several signals:

The lookup itself is cheap to run, but the answer is inherently fuzzy. Country-level accuracy is usually better than 99%; city-level accuracy is often only 50–80%, and street-level accuracy is essentially impossible from IP alone. For why this matters, see our deep dive on IP location accuracy.


What your IP tells someone (and what it doesn't)

What it usually reveals

What it does NOT reveal


Track your IP — why it changes

If you check your public IP today and again next week, it may have changed entirely. Reasons:

If you need a stable IP — for remote access, whitelisting, or running a small server — most ISPs offer a static IP as a paid add-on. Otherwise, dynamic DNS services like DuckDNS or No-IP can point a hostname at whatever your current IP is.


IPv4 lookup vs IPv6

IPv4 addresses (32 bits, 4.3 billion possible values) ran out years ago. New deployments increasingly use IPv6 (128 bits, basically infinite). Both can be looked up the same way and both leak similar information, but a few practical differences are worth knowing:


Internet provider (ISP) lookup

The ISP that owns your IP is in the same database as the location. Looking it up tells you whether you're on a residential connection (Comcast, BT, Jazz), a mobile carrier (T-Mobile, Reliance Jio), a corporate network, a hosting provider (AWS, Azure, Hetzner), or a known VPN. Marketing platforms, fraud-detection systems, and ad networks use this to score traffic quality — a hit from a data-center IP is treated very differently from a hit from a residential subscriber.

You can sanity-check the answer yourself by running whois against your IP in a terminal. The OrgName or netname field is the ISP that registered the IP block.


When the city is wrong

Seeing the wrong city in an IP lookup is extremely common and almost never your fault. The usual causes:

The fix, if you need accurate location, is to grant GPS-level browser geolocation instead of relying on IP. Step-by-step browser fixes are in our troubleshooting guide.


Privacy considerations

Every website you visit can see your IP — that's required for the connection to work. What they do with it varies. GetMyLocations doesn't log your IP for analytics, but our hosting provider (Cloudflare) keeps short-lived request logs for abuse prevention, and our third-party services (reverse geocoding, advertising) may process your IP for their own purposes. The full breakdown is in our Privacy Policy.

If you want to limit what an IP lookup reveals, the standard tools are a reputable consumer VPN (Mullvad, IVPN, ProtonVPN), the Tor browser for stronger anonymity, or simply visiting from a different network. None of these are bulletproof — they all leak in different ways — but they substantially raise the cost of tracking.


Frequently asked questions

How do I look up my own IP location?

Tap the "Lookup my IP" button on the tool above. Within a second or two the page returns your public IP (IPv4 or IPv6), the database-guessed city and country, the ISP that owns the IP block, and whether you appear to be on a residential, mobile, hosting, or VPN connection. No permission prompt — IP geolocation reads only what your browser already sent on the network connection.

How do I look up someone else's IP location?

Paste the IP address into the input field on the tool above and the lookup runs against that IP instead of yours. The same fields come back: city, country, ISP, connection type. Important caveat: an IP reveals at most a city and an ISP — never a street address, never a name. Anything more requires legal process served on the ISP.

How accurate is IP geolocation?

Country level: 95–99% accurate. Region or state: 80–90%. City level: only 50–75%, and often off by tens of kilometres. Street level: essentially zero — the best you can squeeze out of a public database is a 5–50 km radius. Mobile traffic is the worst case because cellular Carrier-Grade NAT routes thousands of subscribers through a single regional gateway.

Why is the city it shows wrong?

Five common causes: (1) a VPN is rewriting your IP to its exit-server location, (2) cellular CGNAT is routing you through a far-away gateway, (3) a corporate or school network exits via a distant office, (4) the database is stale and has not caught up with an ISP block reassignment, or (5) you are connecting through a CDN that reports its own location. Disconnect any VPN, switch from cellular to Wi-Fi, and re-run the lookup.

What is the difference between IP geolocation and GPS?

IP geolocation reads your visible IP and looks it up in a database — accuracy 5–50 km, no permission prompt, defeated by VPN. GPS reads satellite signals directly through your device — accuracy 3–5 m outdoors, requires browser permission, unaffected by VPN. They are complementary, not interchangeable. For "what country is this user in?" IP is fine; for "where exactly is this user standing?" GPS is the only option.

Can someone find my home address from my IP?

No — not without a court order. A public IP lookup reveals your country, usually your city, your ISP, and whether you are on a VPN or proxy. It does not reveal your name or street. Tying an IP to a specific human address requires a subpoena served on the ISP that owns the IP block. Films routinely overstate this; news stories about someone being "tracked through their IP" almost always have a court order in the middle.

Related tools and guides