How to Find Your Public IP Address (And Why It Matters)

TL;DR — Key Takeaways

  • Your public IP address is the address the rest of the internet sees when your devices connect — it’s assigned by your ISP, not by you.
  • The fastest way to find your IP address is to use a web-based IP lookup tool — it takes one click.
  • You can also check your IP address from the command line on Windows, macOS, or Linux, or through your router’s admin page.
  • Your public IP can reveal your approximate city and ISP, but it cannot expose your exact home address without ISP cooperation.
  • If your IP address changes periodically, you likely have a dynamic IP — this is normal and is how most residential internet connections work.

Every device that connects to the internet needs an IP address. It’s the fundamental mechanism that allows data to travel from a web server halfway around the world back to your laptop, phone, or smart TV. Without it, the internet simply doesn’t work.

But most people never think about their IP address until something breaks — a VPN that isn’t masking their traffic, a firewall rule that needs their current address, a streaming service that thinks they’re in the wrong country, or a security incident where they need to verify what’s connecting to their network.

This guide walks through exactly how to find your public IP address using several methods, explains the difference between public and private IP addresses, and covers the privacy and security implications you should understand.

What Is a Public IP Address?

When people say “find my IP address,” they almost always mean their public IP address — the address that identifies their network on the open internet. This is different from the private IP address assigned to individual devices on your local network.

Public vs Private IP Addresses

Your home or office network runs behind a router. That router has two sides: a public-facing side connected to your ISP, and a private-facing side connected to your devices (laptops, phones, printers, smart speakers). The public side gets a public IP address from your internet provider. The private side assigns private IP addresses to your devices using ranges reserved specifically for local networks. For a deeper comparison of how these two address types work together, see our guide on public vs. private IP addresses.

Private IP ranges are defined in RFC 1918 and include:

  • 10.0.0.010.255.255.255 (Class A — large enterprise networks)
  • 172.16.0.0172.31.255.255 (Class B — mid-size organizations)
  • 192.168.0.0192.168.255.255 (Class C — home and small business networks)

If your device’s IP starts with 192.168 or 10., that’s a private address. It only has meaning inside your local network. The rest of the internet can’t reach it directly.

How NAT Bridges the Gap

The technology that connects these two worlds is called NAT (Network Address Translation). When your laptop requests a webpage, NAT translates the request from your private address to the router’s public IP address before sending it onto the internet. When the response comes back, NAT routes it to the correct device on your local network. This is why dozens of devices in your home can share a single public IP address — and why understanding the distinction matters when you’re troubleshooting connectivity or configuring network ports for remote access. Note that while IP addresses identify devices at the network layer, each device also has a unique MAC address that identifies it at the hardware level on the local network.

How to Find Your Public IP Address

There are several reliable ways to check your IP address, depending on your situation and comfort level with technical tools.

Method 1: Use a Web-Based IP Lookup Tool

The simplest approach — open a browser and use a tool that reads your public IP address from the incoming connection. You can check your IP instantly with our tool, which also displays your approximate location, ISP, and whether you’re on IPv4 or IPv6.

This works because when your browser makes a request to a web server, the server sees the public IP your router is using. The tool simply reads that address and displays it back to you. No software to install, no commands to run.

Method 2: Command Line on Windows

If you want to find your IP address on Windows without visiting a website, open Command Prompt or PowerShell and run:

nslookup myip.opendns.com resolver1.opendns.com

This queries OpenDNS’s special hostname that returns your public IP. The result appears under the “Non-authoritative answer” section. Alternatively, in PowerShell:

(Invoke-WebRequest -Uri "https://api.ipify.org").Content

To see your private IP address (useful for local network troubleshooting), use:

ipconfig

Look for the “IPv4 Address” line under your active network adapter. Remember, this shows your local address, not your public one. To understand how these addresses relate to your network’s subnet configuration, the subnet mask displayed alongside it defines which portion of the address identifies your network vs. your device.

Method 3: Command Line on macOS and Linux

On macOS or Linux, open Terminal and run:

curl ifconfig.me

Or for a bit more detail:

curl ipinfo.io

This returns your public IP along with city, region, ISP, and organization data in JSON format. For just the IP with no extras:

dig +short myip.opendns.com @resolver1.opendns.com

For your private IP on macOS:

ipconfig getifaddr en0

On Linux:

hostname -I

Method 4: Router Admin Page

Your router knows its own public IP. Log into the admin interface (typically at 192.168.1.1 or 192.168.0.1 in your browser) and look for a “WAN” or “Internet” status page. The IP address listed there is your public address. This method is especially useful when you need to verify your IP without relying on any external service.

Method 5: Mobile Devices

On iOS, go to Settings > Wi-Fi, tap the info icon next to your connected network — but this shows your private IP. For your public IP, the easiest route on mobile is still a web-based tool: open Safari or Chrome and visit an IP address lookup page.

On Android, the path is similar: Settings > Network & Internet > Wi-Fi > tap your network. Again, this shows the private address. Use a browser-based check for the public one.

Why Your IP Address Matters

Knowing how to find your IP address isn’t just trivia — there are practical situations where you genuinely need it.

VPN verification. After connecting to a VPN, you should verify that your visible IP has actually changed. VPN connections can silently fail, leak through DNS requests, or drop without warning. Checking your public IP confirms the VPN is working. While you’re at it, running a DNS lookup can reveal whether your DNS queries are also being routed through the VPN or leaking to your ISP’s resolvers.

Remote access and firewall rules. If you’re setting up remote access to a home server, NAS, or security camera system, you’ll need to know your public IP to configure port forwarding and firewall allow-lists. Many firewalls require you to whitelist specific IPs for SSH, RDP, or web admin access.

Troubleshooting network issues. When your internet connection acts strange — slow speeds, intermittent drops, or unexpected blocks — knowing your public IP helps you communicate with your ISP’s support team and cross-reference against any IP-based blocks or blacklists. Our guide on how to troubleshoot network connectivity covers a systematic approach to diagnosing these problems. You can also perform a reverse DNS lookup on your IP to see what hostname your ISP has assigned, which can be useful for diagnosing email deliverability problems.

Geo-restriction debugging. Streaming services and some websites use your IP address to determine your country and region. If you’re seeing the wrong content library or getting blocked from a service you should have access to, checking your IP address tells you what location those services think you’re in.

Security auditing. If you spot unfamiliar activity in your server or application logs, comparing the source IP against your known public IP helps you distinguish your own traffic from potential unauthorized access.

Can Someone Find Your Location from Your IP Address?

This is one of the most common concerns people have, and the answer is more nuanced than a simple yes or no.

What your IP address reveals: Using publicly available geolocation databases, someone who has your IP can typically determine your city or metropolitan area, your ISP’s name, and sometimes the postal code region. The accuracy varies — in dense urban areas it might narrow down to a neighborhood-sized region; in rural areas it might only identify the nearest city where your ISP has infrastructure.

What your IP address does NOT reveal: Your street address, apartment number, name, or any other personally identifying information. IP geolocation databases map IP ranges to approximate areas based on where ISPs allocate address blocks. They do not contain subscriber records.

The ISP factor: Your ISP does keep records connecting your IP address to your account (and therefore your billing address). However, ISPs are legally required to protect this information. In most jurisdictions, releasing subscriber data requires a court order or valid law enforcement subpoena. A random person on the internet cannot call up your ISP and ask who owns a particular IP.

So the realistic threat level is low for most people. Your IP reveals roughly where you are, but not precisely who or where you are. That said, combining an IP address with other data points (social media posts, account registrations, forum activity) can build a more complete picture, which is one reason privacy-conscious users choose to mask their IP with a VPN.

Why Does My IP Address Change?

If you’ve checked your IP address on different occasions and noticed different results, you’re seeing dynamic IP assignment in action.

Dynamic vs static IPs. Most residential internet plans use dynamic IPs. Your ISP has a pool of available addresses and assigns one to your router when it connects. This assignment has a DHCP lease — a time limit (often 24 hours to several days). When the lease expires, your router requests a renewal. Sometimes it gets the same address back; sometimes it gets a different one. Whether you receive an IPv4 or IPv6 address (or both) depends on your ISP and equipment — our IPv4 vs. IPv6 comparison explains the differences.

Static IPs, on the other hand, are permanently assigned to your connection and don’t change. Businesses typically pay extra for static IPs because they need a predictable address for hosting servers, running email infrastructure, or maintaining VPN endpoints.

Common triggers for IP changes:

  • Router restart: Powering off your router releases the DHCP lease. When it reconnects, the ISP may assign a new address from the pool.
  • ISP maintenance: Backend infrastructure changes or network reconfigurations can reassign IP blocks.
  • Extended disconnection: If your router is offline long enough for the lease to expire, you’ll likely get a new address.
  • ISP policy: Some ISPs rotate addresses more aggressively than others. Cable providers tend to change IPs less frequently than DSL or cellular providers.

If you need your IP to stay the same, contact your ISP about a static IP plan, or use a dynamic DNS (DDNS) service that maps a hostname to your current IP and updates it automatically when the address changes.

How to Hide or Change Your IP Address

There are legitimate reasons to mask your public IP — privacy, bypassing geographic restrictions, or securing your connection on public Wi-Fi. Here are the main approaches.

VPN (Virtual Private Network). A VPN routes your traffic through a server in another location, so websites see the VPN server’s IP instead of yours. This is the most common and practical solution for everyday use. Choose a reputable, paid VPN provider — free VPNs often monetize your data, which defeats the purpose. After connecting, verify the change by running an IP address check.

Proxy servers. A proxy acts as an intermediary, forwarding your requests through a different IP. Unlike a VPN, most proxies don’t encrypt your traffic, so they’re less suitable for security-sensitive tasks. They’re useful for quick IP changes when encryption isn’t a concern — for example, web scraping or testing how a website appears from a different region.

Tor (The Onion Router). Tor bounces your traffic through multiple volunteer-operated relays worldwide, making it very difficult to trace back to your original IP. It’s the strongest option for anonymity, but it comes with significant speed penalties and some websites block Tor exit nodes. The Electronic Frontier Foundation provides detailed guidance on when and how to use Tor effectively.

Mobile data. Switching from Wi-Fi to cellular data gives you a different public IP assigned by your mobile carrier. This isn’t a privacy solution, but it’s a quick way to get a new IP if you’re troubleshooting an IP-based block.

Frequently Asked Questions

What is the difference between a public and private IP address?

A public IP address is assigned to your router by your ISP and is visible to every server you connect to on the internet. A private IP address is assigned to individual devices on your local network (like 192.168.1.x) and is only meaningful within that network. Your router uses NAT to translate between the two. All devices on your home network share the same public IP but have unique private IPs.

How do I find my IP address on Windows 10/11?

For your public IP, the easiest method is visiting a web-based lookup tool. From the command line, open PowerShell and run (Invoke-WebRequest -Uri "https://api.ipify.org").Content or use nslookup myip.opendns.com resolver1.opendns.com in Command Prompt.

For your private IP, open Command Prompt and type ipconfig, then look for the IPv4 Address under your active network adapter.

Does my IP address reveal my exact home address?

No. An IP address typically reveals your approximate city or region and your ISP, but not your street address, name, or apartment number. Only your ISP holds records linking your IP to your physical location, and they require a legal order (such as a court subpoena) to release that information. IP geolocation is a rough approximation, not a GPS coordinate.

Why does my IP address change when I restart my router?

Most home internet connections use dynamic IP addressing. Your ISP assigns your router an IP from a shared pool with a time-limited DHCP lease. When you restart the router, the current lease may be released. On reconnection, the ISP’s DHCP server may assign a different address from the pool. Some ISPs are more aggressive about rotating addresses than others — you might get the same IP back, or you might not.

Is it safe to share my IP address?

Your IP address is not a secret — every website and service you connect to already sees it. Sharing it casually (for example, in a support ticket or with a network administrator) is generally fine. However, posting it publicly on forums or social media is unnecessary and gives potential attackers one more data point. While an IP alone isn’t enough to cause serious harm, it can be used to attempt port scans, denial-of-service attacks, or rough geolocation. Use reasonable judgment: share it when there’s a practical reason, and avoid broadcasting it without purpose.

How do I find my IP address without going to a website?

You can find your public IP entirely from the command line. On Windows, use nslookup myip.opendns.com resolver1.opendns.com in Command Prompt. On macOS/Linux, use dig +short myip.opendns.com @resolver1.opendns.com or curl ifconfig.me. You can also log into your router’s admin page (usually at 192.168.1.1) and look at the WAN/Internet status section to see the public IP assigned to your connection.

References & Further Reading