What your public IP address is and why you might need it

Your public IP address is the number that identifies your internet connection to the outside world. It's different from the private IP address your router assigns to devices inside your home — your public IP is what websites, online games, and remote services see when you connect to them.

You might need to find this number to set up port forwarding on your router, troubleshoot a connection problem with your internet provider, configure remote access to a home computer, or provide it to someone helping you with a technical issue. The good news is that finding it takes less than a minute and requires no special software or technical knowledge.

Key Takeaways

  • Your public IP address is visible to any website you visit, and you can see it yourself using a free online tool in under one minute.
  • The fastest method is to search "what is my IP" in Google, which displays your public IP at the top of the results page.
  • If you need to find your IP on a specific device (phone, tablet, or computer), the method is the same regardless of which device you use.
  • Your public IP address can change if your internet goes down or your provider reassigns it, so write it down only if you need it for something specific right now.

The fastest way: Google search

Open any web browser on any device and type what is my IP into Google. Your public IP address appears in large text at the very top of the search results, usually in a box labeled "Your public IPv4 address" or similar. This works on phones, tablets, and computers.

This method works because Google's search results are pulling your IP directly from the connection you're using right now. If you're on your home WiFi, you'll see your home network's public IP. If you're on mobile data, you'll see your phone carrier's IP. If you're on a work network, you'll see that network's IP.

Other reliable websites that show your IP

If you prefer not to use Google, several other websites display your public IP instantly. Visit whatismyipaddress.com, ipchicken.com, or myip.com in your browser. Each one shows your public IP address prominently on the page, usually within the first few seconds of loading.

All of these sites work the same way: they detect the IP address your device is connecting from and display it back to you. None of them require you to enter any personal information or create an account. You can use whichever one loads fastest for you.

Finding your IP on Windows, Mac, or Linux

If you want to see your public IP through your computer's built-in tools rather than a website, you can use the command line. On Windows, open Command Prompt (search for "cmd" in the Start menu), type curl ifconfig.me, and press Enter. Your public IP appears on the next line.

On Mac or Linux, open Terminal and type the same command: curl ifconfig.me. Press Enter and your IP displays immediately. This method bypasses websites entirely and pulls the information directly from your system, which some people prefer for privacy reasons.

Understanding IPv4 versus IPv6

Most websites and tools show you your IPv4 address, which looks like four numbers separated by periods (for example, 203.0.113.45). This is the standard format that has been used for decades. Some newer devices and networks also support IPv6, which looks like a longer string of letters and numbers separated by colons.

For most everyday purposes, you only need your IPv4 address. If someone asks for your public IP, they almost certainly mean the IPv4 version. IPv6 is becoming more common, but it's not yet the default everywhere. If a website shows both, write down the IPv4 unless you have a specific reason to use the IPv6 version.

Why your public IP might change

Most home internet providers assign you a dynamic IP address, which means it can change. This usually happens when your modem restarts, your internet connection drops and reconnects, or your provider decides to reassign addresses. Some business connections use a static IP address that stays the same indefinitely, but this typically costs extra and requires a special request to your provider.

If you need your IP address for something temporary — like troubleshooting with your internet provider's support team or accessing a device remotely for one session — write it down right then. If you need it to stay the same long-term, contact your internet provider and ask about static IP options. They can tell you whether it's available in your area and what it costs.

What to do if you can't find your IP

If Google search or the other websites above don't show an IP address, your device is not currently connected to the internet. Check that WiFi is turned on, that you're connected to your network, or that mobile data is enabled. Try loading a different website first — if that doesn't work, your connection is down and you won't be able to see your public IP until it's restored.

If you're connected but the websites load very slowly, try a different browser or wait a few seconds for the page to fully load. The IP address usually appears before the rest of the page finishes loading, so you may see it even if the site looks incomplete.

Frequently Asked Questions

Is my public IP address private information?

Your public IP is visible to every website you visit and every service you connect to online. It's not secret, but it's also not the same as your home address or personal identity. Someone with your IP can see roughly what city you're in, but not your exact location or name. Treat it the way you'd treat a phone number — not something to post publicly, but not something to hide from your internet provider or the services you use.

Can I change my public IP address?

You can force a change by restarting your modem (unplug it for 30 seconds, then plug it back in). Your internet provider will assign you a new IP when it reconnects. If you need your IP to change permanently, contact your provider — they may be able to reassign one immediately, or you may need to wait for your next automatic reassignment. A static IP requires a paid upgrade.

Why does my IP look different on my phone than on my computer?

If both devices are on the same home WiFi, they should show the same public IP address. If they show different IPs, one device is probably on mobile data instead of WiFi. Check that both are connected to the same network. If they're on different networks (one at home, one at work or a coffee shop), they'll have different public IPs because they're connecting through different internet providers.

Do I need my public IP to set up port forwarding?

No. Port forwarding is configured inside your router's settings, not using your public IP. You log into your router (usually at 192.168.1.1 in your browser), find the port forwarding section, and specify which device and port to forward to. Your public IP is useful to know if you're testing whether the port forwarding worked from outside your network, but it's not required to set it up.

What if a website asks me to verify my IP address?

Some services ask you to confirm your IP as a security check — for example, if you're logging in from a new location. Use one of the methods above to find your current IP, then enter it into the verification field. Make sure you're checking your IP from the same device and network you're trying to verify, or the numbers won't match.