How to Find My Public IP Address — Complete Guide 2026

Your public IP address is the unique identifier your internet service provider (ISP) assigns to your network. Every website you visit, every streaming service you use, and every online service you connect to sees this address. Knowing how to find it is essential for troubleshooting network issues, configuring remote access, setting up firewalls, and understanding your digital footprint. This guide covers every method to find your public IP on any device and explains the critical differences between public and private IPs.

Check your public IP address instantly at miip.link — free, fast, and no installation required.

What Is a Public IP Address?

A public IP address is a globally unique number assigned to every device connected to the internet. Think of it as your home address, but for your internet connection. When you send a request to a website, your public IP is included so the server knows where to send the response back.

There are two types of public IP addresses:

Your ISP assigns you a public IP from their pool. It can be dynamic (changes periodically) or static (stays the same). Most residential connections use dynamic IPs, which can change each time your router reconnects.

Public IP vs Private IP: What's the Difference?

Understanding the distinction between public and private IPs is fundamental to networking:

FeaturePublic IPPrivate IP
VisibilityVisible on the internetOnly visible on your local network
Assigned byYour ISPYour router
UniquenessGlobally uniqueReused across networks (192.168.x.x, 10.x.x.x)
Used forInternet communicationLocal network communication
Example203.0.113.42192.168.1.105
CostISP may charge for staticFree (router assigns automatically)

Your router uses NAT (Network Address Translation) to connect your private IPs to the public internet. When you request a webpage, the router replaces your private IP with the public IP, forwards the request, then routes the response back to your specific device. This is why all devices on your home network share the same public IP but have different private IPs.

Learn more about private IPs in our guide: How to Find Your Private IP Address.

The Easiest Way: Use an IP Lookup Website

The fastest and simplest way to find your public IP is to visit a website designed for this purpose. These sites automatically detect your IP and display it along with location data, ISP information, and more.

miip.link (Recommended)

Visit miip.link and your public IP address appears instantly — no clicking, no searching. You'll also see:

Other IP lookup sites

How to Find Your Public IP on Windows

Method 1: Using Command Prompt

Open Command Prompt and use one of these commands:

curl ifconfig.me

This returns your public IP directly. If you don't have curl installed, try:

nslookup myip.opendns.com resolver1.opendns.com

This queries OpenDNS's special resolver that echoes your public IP back.

Method 2: Using PowerShell

(Invoke-WebRequest -Uri "https://ifconfig.me").Content

This makes an HTTP request to an IP lookup service and returns your public IP.

Method 3: Using a web browser

Simply open your browser and visit miip.link. Your public IP appears on screen immediately.

How to Find Your Public IP on macOS

Method 1: Terminal

Open Terminal and run:

curl ifconfig.me

Or for more detail:

curl ipinfo.io

This returns your IP plus location, ISP, and hostname in JSON format.

Method 2: Using dig

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

This uses the DNS protocol instead of HTTP, which can be faster and works even behind some corporate proxies.

Method 3: Web browser

Visit miip.link in Safari, Chrome, or any browser for an instant IP lookup.

How to Find Your Public IP on Linux

Linux offers the most flexibility for finding your public IP. Here are the best methods:

Using curl

curl -s ifconfig.me

Using wget

wget -qO- ifconfig.me

Using dig

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

Using nmcli (NetworkManager)

While nmcli shows your private IP, you can combine it with a DNS query for your public IP:

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

For more on private IPs, see: How to Find Your Private IP Address.

How to Find Your Public IP on Android

Method 1: Use a browser

Open Chrome or any browser and visit miip.link. Your public IP displays immediately.

Method 2: Settings (shows private IP only)

Go to Settings → Network & Internet → Wi-Fi → tap your network → Advanced. This shows your private IP (e.g., 192.168.1.x). To see your public IP, use a website or app.

Method 3: Terminal Emulator apps

If you have Termux or a similar terminal app installed:

curl ifconfig.me

How to Find Your Public IP on iPhone (iOS)

Method 1: Use Safari

Open Safari and go to miip.link. Your public IP and location info appear instantly.

Method 2: Settings (private IP only)

Go to Settings → Wi-Fi → tap the "i" icon next to your network. This shows your local/private IP address. Your public IP is not shown in iOS settings — use a website instead.

Method 3: Shortcuts app

Create a Shortcut that fetches your IP from an API:

  1. Open the Shortcuts app
  2. Create a new shortcut
  3. Add "Get Contents of URL" with https://ifconfig.me
  4. Add "Show Result"
  5. Run the shortcut to see your public IP

How to Find Your Public IP from a Router

You can also find your public IP by logging into your router's admin panel:

  1. Open a browser and go to your router's address (usually 192.168.1.1 or 192.168.0.1)
  2. Log in with your admin credentials
  3. Look for "WAN," "Internet," or "External" IP address
  4. This is your public IP

Some routers show it on the main status page; others bury it in an "Advanced" section. The exact location varies by manufacturer (Netgear, ASUS, TP-Link, etc.).

What Your Public IP Reveals About You

Your public IP address doesn't contain your name or exact address, but it reveals more than you might think:

Websites use this information for content localization, fraud detection, and analytics. Advertisers use it for targeted advertising. If you want to limit what your IP reveals, consider using a VPN to hide your IP address.

Static vs Dynamic Public IP Addresses

Most home users have a dynamic public IP that changes periodically. Here's how they compare:

FeatureDynamic IPStatic IP
Changes?Yes, periodicallyNo, stays the same
CostUsually freeOften $5-15/month extra
Best forMost usersServers, remote access, VPNs
SetupAutomaticRequires ISP configuration
DDNS needed?Yes, for hostingNo

Learn more in our guide: Does My IP Address Change? Dynamic vs Static IP Explained.

Using Command Line Tools for IP Lookup

For developers and sysadmins, here's a quick reference of the best command-line methods:

CommandOutputBest for
curl ifconfig.meIP onlyScripts, automation
curl ipinfo.ioIP + geolocation JSONDetailed lookup
curl ipapi.co/jsonIP + country + cityLocation data
dig +short myip.opendns.com @resolver1.opendns.comIP onlyBehind proxies
curl -6 ifconfig.meIPv6 addressIPv6 lookup

Troubleshooting: Why Can't I Find My Public IP?

Security Considerations

Your public IP is visible to every server you connect to. Here are security implications to keep in mind:

To protect yourself, use a VPN, keep your router's firmware updated, and avoid opening unnecessary ports. For more on IP tracing and privacy, read How to Trace an IP Address Location.

FAQ

What is the easiest way to find my public IP?

Visit miip.link — your public IP appears instantly with no installation or commands needed.

Is my public IP the same as my private IP?

No. Your private IP (like 192.168.1.x) is used within your local network. Your public IP is what the internet sees. Your router connects them using NAT. See our guide on finding your private IP for more details.

Does my public IP change?

Most likely yes. Most ISPs assign dynamic IPs that change every few days or when your router reconnects. If you need a fixed IP, contact your ISP about a static IP. Read more in Does My IP Address Change?.

Can someone find my exact address from my public IP?

No. A public IP reveals your approximate city and ISP, but not your exact street address. Geolocation databases are typically accurate only to the city level.

How do I find my public IP from the command line?

Run curl ifconfig.me in your terminal. On Windows, you can also use nslookup myip.opendns.com resolver1.opendns.com.

What's the difference between IPv4 and IPv6 public IPs?

IPv4 uses a 32-bit format (e.g., 203.0.113.42) with about 4.3 billion addresses. IPv6 uses a 128-bit format (e.g., 2001:db8::1) with virtually unlimited addresses. You may have both, and some services show only one.

Can I hide my public IP?

Yes. A VPN replaces your real IP with the VPN server's IP. Tor, proxies, and mobile data also change your apparent IP. See How to Hide Your IP Address for a full comparison.

Find your public IP address right now at miip.link — free, instant, and detailed.