What your public IP address is and why you might need it
Your public IP address is the number that identifies your home or office network to the rest of the internet. It's assigned by your internet service provider and is visible to websites you visit, your email provider, and anyone else you connect to online. Unlike your private IP address (which only devices inside your home network use to talk to each other), your public IP is how the outside world finds you.
You might need to know your public IP address to set up remote access to a home computer, troubleshoot a connection problem with your internet provider, configure a security camera system, or check whether your location is being blocked by a website. Most of the time you won't need it, but when you do, finding it takes less than a minute.
Key Takeaways
- Your public IP address is what websites and online services see when you connect to them, and it's different from the private IP address your home devices use to talk to each other.
- The fastest way to find your public IP is to visit a website like whatismyipaddress.com or search "what is my IP" in any search engine.
- Your public IP address may change when you restart your modem or router, unless your internet provider has assigned you a static IP.
- If you need to know your public IP for a specific reason like remote access or security, write it down because it can change without warning.
The fastest way: use a website that shows your IP
Open any web browser and visit whatismyipaddress.com. The page will display your public IP address at the top in large text, usually within a second of loading. That's it — you now have your public IP address.
If that site is slow or won't load, try ipchicken.com or myip.com. All three do the same thing: they show your public IP address the moment the page loads. You don't need to click anything or enter any information.
Another option is to search "what is my IP" in Google, Bing, or any search engine. Google will display your public IP address directly in the search results without you having to visit a separate website. This method works on phones, tablets, and computers.
How to find your public IP on Windows
If you want to find your public IP without visiting a website, you can use the Command Prompt on Windows. Right-click the Start button and select Windows PowerShell (Admin) or Command Prompt (Admin). A black window will open.
Type this command and press Enter: curl ifconfig.me. Your public IP address will appear on the next line. If that command doesn't work, try nslookup myip.opendns.com resolver1.opendns.com instead — look for the line that says "Address:" and the number after it is your public IP.
These commands work because they connect to a server that reports back what IP address you're connecting from. The website method is simpler for most people, but the command line approach works if you prefer not to open a browser.
How to find your public IP on Mac or Linux
Open the Terminal application. On a Mac, press Command + Space, type Terminal, and press Enter. On Linux, open your terminal from the applications menu.
Type this command and press Enter: curl ifconfig.me. Your public IP address will appear on the next line. If you want to see additional information about your connection, type curl ipinfo.io instead — this will show your IP address along with your approximate location and internet provider.
Both commands are safe and simply query a public server to find out what IP address you're connecting from. You can run them as many times as you want without any risk.
Understanding why your public IP might change
Most home internet connections use dynamic IP addresses, which means your public IP can change whenever you restart your modem or router. Your internet provider may also reassign it periodically — sometimes weekly, sometimes monthly. This is normal and not a problem for everyday internet use.
If you need your public IP to stay the same — for example, to set up remote access to a home computer or to whitelist your connection on a security system — you can contact your internet provider and ask about a static IP address. This costs extra (usually $5 to $15 per month) but guarantees your IP won't change. Some providers offer it automatically to business customers.
If your IP address changes and you need to know the new one, just check it again using any of the methods above. There's no way to predict when it will change, so if you need it for something important, check it right before you use it.
What to do if a website says your IP is blocked
If a website tells you that your IP address is blocked or restricted, knowing your public IP won't unblock you, but it helps you explain the problem to the website's support team. Write down your public IP address and include it in your message to them.
Some websites block entire ranges of IP addresses that belong to data centers or VPN services. If you're using a VPN, try disconnecting it and checking the website again — your public IP will change back to your home internet provider's address. If the website still blocks you, contact their support team with your IP address and ask why it's restricted.
Frequently Asked Questions
Is my public IP address the same on all my devices?
Yes. All devices in your home that connect through the same internet connection share the same public IP address. Your phone, laptop, tablet, and smart TV all appear to the outside world as coming from that single public IP. Each device has its own private IP address for communicating within your home network, but they all share one public IP.
Can someone find my home address from my public IP?
Someone can look up your approximate location from your public IP address — usually accurate to your city or neighborhood, sometimes to your street. They cannot see your exact home address from the IP alone. Your internet provider knows which customer owns each IP address, but they don't share that information with the public.
Why does my public IP address keep changing?
Your internet provider assigns you a dynamic IP address, which is the standard for home internet. It changes when you restart your modem or router, or when your provider's system reassigns it. This is normal. If you need a permanent IP address, contact your provider about upgrading to a static IP.
Do I need to hide my public IP address?
For normal internet use, you don't need to hide your public IP. Websites need it to send you data. A VPN hides your public IP if you want extra privacy, but it's not necessary for basic security. Your public IP alone doesn't expose your passwords, files, or personal information.
What's the difference between my public IP and private IP?
Your public IP is what the internet sees when you connect to websites. Your private IP is what your home devices use to talk to each other and your router. You can find your private IP by searching "what is my local IP" or by checking your router's settings. Most home networks use private IPs that start with 192.168 or 10.