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:
- IPv4: The classic format, like
203.0.113.42. Uses 32 bits, allowing about 4.3 billion addresses. Most home connections still use IPv4. - IPv6: The newer format, like
2001:0db8:85a3::8a2e:0370:7334. Uses 128 bits, providing a virtually unlimited number of addresses. Adoption is growing but not yet universal.
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:
| Feature | Public IP | Private IP |
|---|---|---|
| Visibility | Visible on the internet | Only visible on your local network |
| Assigned by | Your ISP | Your router |
| Uniqueness | Globally unique | Reused across networks (192.168.x.x, 10.x.x.x) |
| Used for | Internet communication | Local network communication |
| Example | 203.0.113.42 | 192.168.1.105 |
| Cost | ISP may charge for static | Free (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:
- Your approximate city and country
- Your ISP name
- Your IP version (IPv4 or IPv6)
- Whether you're using a VPN or proxy
Other IP lookup sites
- whatismyip.com: Shows both IPv4 and IPv6 addresses
- ipinfo.io: Detailed geolocation and ASN data
- ifconfig.me: Minimalist — shows only your IP
- icanhazip.com: Plain text IP output, great for scripts
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:
- Open the Shortcuts app
- Create a new shortcut
- Add "Get Contents of URL" with
https://ifconfig.me - Add "Show Result"
- 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:
- Open a browser and go to your router's address (usually
192.168.1.1or192.168.0.1) - Log in with your admin credentials
- Look for "WAN," "Internet," or "External" IP address
- 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:
- Approximate location: City, region, and country (usually accurate to the city level)
- ISP name: Which internet provider you use
- Organization: Whether you're on a corporate, university, or residential network
- Time zone: Based on your IP's geolocation
- ASN: Your provider's Autonomous System Number
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:
| Feature | Dynamic IP | Static IP |
|---|---|---|
| Changes? | Yes, periodically | No, stays the same |
| Cost | Usually free | Often $5-15/month extra |
| Best for | Most users | Servers, remote access, VPNs |
| Setup | Automatic | Requires ISP configuration |
| DDNS needed? | Yes, for hosting | No |
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:
| Command | Output | Best for |
|---|---|---|
curl ifconfig.me | IP only | Scripts, automation |
curl ipinfo.io | IP + geolocation JSON | Detailed lookup |
curl ipapi.co/json | IP + country + city | Location data |
dig +short myip.opendns.com @resolver1.opendns.com | IP only | Behind proxies |
curl -6 ifconfig.me | IPv6 address | IPv6 lookup |
Troubleshooting: Why Can't I Find My Public IP?
- VPN is active: A VPN replaces your real IP with the VPN server's IP. Disconnect the VPN to see your real IP.
- Proxy configured: Similar to a VPN, a proxy changes your apparent IP.
- Carrier-grade NAT (CGNAT): Some ISPs share one public IP among many customers. You may see a shared IP that's not uniquely yours.
- Dual stack (IPv4 + IPv6): You might have both types. Some tools show only one. Check both with
curl -4 ifconfig.meandcurl -6 ifconfig.me. - Router not connected: If your router lost its connection, it has no public IP.
Security Considerations
Your public IP is visible to every server you connect to. Here are security implications to keep in mind:
- DDoS attacks: Attackers can flood your IP with traffic, taking you offline
- Port scanning: Your IP can be scanned for open ports and vulnerabilities
- Tracking: Websites and advertisers can track your activity across sessions
- Social engineering: An IP's geolocation can be used in targeted phishing
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.