How to Find Your Public IP Address (Any Device, Any Method)

Your public IP address is the unique identifier your internet service provider (ISP) assigns to your connection — it's how the wider internet recognizes your network. Whether you're troubleshooting a connection, setting up remote access, or just curious, finding it takes seconds once you know where to look.

What Is a Public IP Address?

Before diving into methods, it helps to understand what you're actually looking for.

Your home or office network has two types of IP addresses in play:

  • Private IP address — assigned by your router to each device on your local network (your laptop, phone, smart TV, etc.). These typically look like 192.168.x.x or 10.0.x.x.
  • Public IP address — assigned by your ISP to your entire network. This is the address the outside world sees.

When someone asks "what's your IP address?" in the context of internet access, they almost always mean your public IP. Your private IP is invisible to external servers and websites.

The Fastest Method: Use a Web-Based IP Lookup 🌐

The simplest approach works on any device with a browser:

  1. Open any web browser
  2. Go to a lookup site such as whatismyip.com, ipinfo.io, or simply search "what is my IP" in Google
  3. Your public IP address appears immediately at the top of the results

Google itself displays your public IP directly in search results when you search "my IP address" — no third-party site needed.

This method works identically on Windows, macOS, Linux, Android, iOS, and any other browser-capable device, because the lookup happens server-side. The website you visit simply reflects back the IP address your request came from.

Finding Your Public IP via Command Line

If you prefer working without a browser, or need to check programmatically, command-line tools can pull your public IP by querying an external service.

On Windows (Command Prompt or PowerShell):

curl ifconfig.me 

On macOS or Linux (Terminal):

curl ifconfig.me 

or

curl icanhazip.com 

These commands send a request to a public API that echoes back your IP. The result is a clean, plain-text response — just the IP address, nothing else.

On Linux, an alternative:

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

This queries OpenDNS's resolver to return your public-facing IP without relying on HTTP at all.

What Your Router Admin Panel Shows

Your router's admin interface (typically accessed at 192.168.1.1 or 192.168.0.1 in a browser) usually displays your public IP under a section labeled WAN Status, Internet Status, or Connection Info. The exact label varies by router brand and firmware.

This method is useful if:

  • You want to check your IP without using an external website
  • You're managing a home server or port forwarding rules
  • You're verifying a static IP assignment from your ISP

Log into your router admin panel, navigate to the status or internet section, and look for the WAN IP or External IP field.

Variables That Affect Your Public IP

Your public IP isn't always the same value, and several factors determine what it is at any given moment:

FactorImpact on Public IP
ISP typeMost residential ISPs assign dynamic IPs that change periodically
Static IP planBusiness or upgraded plans may include a fixed public IP
VPN activeYour visible public IP becomes the VPN server's IP, not your ISP's
Mobile data vs. Wi-FiCellular networks assign a different public IP than your home broadband
CGNATSome ISPs use Carrier-Grade NAT, meaning multiple customers share one public IP

Dynamic vs. static is the most practically significant distinction. If your ISP assigns you a dynamic IP, it can change when your router restarts or after a set lease period. A static IP stays constant — relevant for hosting services, remote desktop setups, or IP whitelisting.

VPNs and What They Do to Your Public IP 🔒

When a VPN (Virtual Private Network) is active, your traffic routes through the VPN provider's servers. Any website or service you connect to sees the VPN server's IP address — not the one your ISP assigned you.

This means:

  • Web-based lookups will show your VPN's IP, not your real public IP
  • To see your actual ISP-assigned IP, you'd need to disconnect the VPN first
  • This is intentional behavior — privacy-focused users use VPNs precisely to mask their real public IP

If you're troubleshooting a network issue and see an unexpected IP location, an active VPN is usually the first thing worth checking.

IPv4 vs. IPv6: Which One You'll See

Most public IP lookups return an IPv4 address — the familiar four-number format like 203.0.113.47. But depending on your ISP and how the lookup site is configured, you may also see an IPv6 address — a longer alphanumeric format like 2001:0db8:85a3::8a2e:0370:7334.

Many modern ISPs now issue both simultaneously through dual-stack configuration. Some lookup tools show both; others default to one. If you need a specific format for configuration purposes (firewall rules, remote access whitelisting, etc.), confirm which version the system you're working with expects.

Why the Method You Choose Matters

For a casual check, any browser-based lookup does the job in under five seconds. But the right method shifts depending on your situation — whether you're scripting an automated check, managing a server, working behind a VPN, or operating on a cellular connection with its own IP behavior. The public IP your device appears to use isn't always straightforward, and understanding which layer of your network is responsible for it changes which method gives you the answer you actually need.