The quickest way to find your public IP address

Your public IP address is the number your internet service provider assigns to your home or office network. It is visible to every website you visit and every server you connect to. The fastest way to find it is to open a web browser and visit a site that displays it back to you — no software to install, no account needed.

Go to whatismyipaddress.com, ipinfo.io, or myip.com in any browser. The page will show your public IP address within seconds. That address is what the outside world sees when you browse the web, send email, or use any internet service from your home network.

If you want to check from a phone or tablet, the same websites work on mobile browsers. You can also search "what is my IP" in Google and the answer appears at the top of the results without clicking anywhere else.

Key Takeaways

  • Visit whatismyipaddress.com, ipinfo.io, or myip.com in any web browser to see your public IP address instantly.
  • Your public IP address is assigned by your internet service provider and is visible to websites and online services you connect to.
  • The address shown is for your entire home or office network, not your individual device — all devices on your Wi-Fi share the same public IP.
  • You can also search "what is my IP" in Google to see the answer without visiting a separate website.

Why you might need to know your public IP address

You need your public IP address when setting up remote access to a computer at home, configuring a security camera system, or troubleshooting connection problems with your internet service provider. Some online games and applications also ask for it when you are connecting from outside your home network.

If you are reporting a problem to your ISP or to a website that is blocking your connection, they will often ask for your public IP address to look up what is happening on their end. Knowing it ahead of time saves a phone call or support chat.

The difference between your public IP and your private IP

Your public IP address is what the internet sees — it is assigned by your ISP and is unique across the entire internet. Your private IP address is what your devices use to talk to each other inside your home network, and it starts with 192.168 or 10.0 or 172.16. Every device on your Wi-Fi has its own private IP, but they all share one public IP when they go out to the internet.

If you need your private IP instead — for example, to connect to a printer or security camera on your home network — you can find it by opening your router's settings page or checking your device's network settings. But for most purposes, when someone asks for "your IP address," they mean the public one.

What information is visible from your public IP address

Websites can see your public IP address and use it to determine your approximate location — usually your city or region, not your exact street address. They can also see what country you are in and sometimes your internet service provider's name. This information is used for things like showing you local search results or detecting fraud.

Your public IP address does not reveal your name, home address, phone number, or the contents of your browsing. It is a routing number, not a personal identifier. However, if someone has your IP address and knows which websites you visit, they can cross-reference that information to narrow down who you are.

How to check your IP address from the command line

If you prefer not to visit a website, you can find your public IP address using your computer's built-in command line tools. On Windows, open Command Prompt and type curl ifconfig.me or nslookup myip.opendns.com resolver1.opendns.com. On Mac or Linux, open Terminal and type curl ifconfig.me or dig +short myip.opendns.com @resolver1.opendns.com.

These commands connect to a remote server and ask it to report back your IP address. The result appears in the command window within a second or two. This method is useful if you are automating the process or checking your IP address from a server without a graphical browser.

When your public IP address changes

Most home internet connections use dynamic IP addresses, which means your ISP can change your public IP address at any time — usually when you restart your modem or router, or after a period of inactivity. Some ISPs change it every few days or weeks as part of normal operation.

If you need your IP address to stay the same — for example, to run a server or allow remote access from a fixed address — you can contact your ISP about a static IP address. This costs extra and is not available in all areas, but it guarantees your public IP will not change. For most home users, a dynamic address is fine and costs nothing.

Frequently Asked Questions

Is it safe to share my public IP address?

Sharing your public IP address alone is generally safe — it is visible to every website you visit anyway. However, avoid posting it publicly on forums or social media where it could be logged and associated with your identity. If you need to share it with someone, use a direct message or private channel.

Can someone hack me if they have my IP address?

Having your IP address alone is not enough to hack your computer or network. They would also need to find an open port and a vulnerability in a service running on that port. A properly configured router with a firewall blocks most attacks. However, if you are running a web server or other service on a non-standard port, keep it updated and use strong passwords.

Why does my IP address look different on different websites?

It should not. If you see different public IP addresses on different websites within a few minutes, you may be behind a proxy or VPN, or your ISP may have just reassigned your address. Refresh the page or wait a few minutes and check again. If it keeps changing, contact your ISP.

Can I hide my public IP address?

A VPN (virtual private network) masks your public IP address and replaces it with the VPN provider's IP address. This hides your real location and ISP from websites you visit. However, the VPN provider can still see your traffic, so choose one you trust. A VPN costs money and may slow your connection slightly.