What your public IP address is and why you need it
Your public IP address is the number your internet service provider assigns to your home network so websites and services can find you on the internet. It is different from the private IP addresses your router assigns to devices inside your home — those stay hidden from the outside world. You need your public IP address when you set up remote access to your computer, troubleshoot connection problems with your ISP, or configure security settings on your router.
Your public IP address changes periodically unless you pay for a static IP. Most home internet plans use dynamic IPs, which means the number shifts every few months or when you restart your modem. This is normal and does not affect how your internet works day to day.
Key Takeaways
- Your public IP address is visible to websites you visit and can be found in seconds using a free online tool.
- The fastest method is to visit a site like whatismyipaddress.com or similar, which displays your IP when ready.
- You can also find your public IP by logging into your router's settings page, though this takes more steps.
- Your public IP likely changes every few months unless you pay for a static address from your ISP.
- Your public IP is different from the private IP addresses your router assigns to your devices — only the public one reaches the internet.
Using a free online IP lookup tool
The fastest way to find your public IP is to visit a website that displays it for you. Open any web browser and go to whatismyipaddress.com, ipchicken.com, or myip.com. The page loads in seconds and shows your public IP address in large text at the top. No sign-up, no software to install.
These sites work because they can see the IP address your traffic comes from — the same way a website knows you visited it. The information is public by design; websites need to know where to send data back to you. These tools straightforward display what any website already sees.
Finding your public IP through your router settings
If you prefer not to use an external website, you can find your public IP by logging into your router. Open a web browser and type 192.168.1.1 or 192.168.0.1 into the address bar — one of these is the default address for most home routers. You will be asked for a username and password; check the sticker on the back or bottom of your router if you have not changed these from the factory defaults.
Once logged in, look for a section labeled "Status," "Internet," "WAN," or "Network." The public IP address is listed there, usually alongside other connection details like your gateway and DNS servers. The exact location varies by router brand — Netgear, TP-Link, Linksys, and others arrange their menus differently — but the information is always in a status or overview section.
This method is more work than using an online tool, but it also shows you other useful information about your connection, such as whether your IP is static or dynamic and what your gateway address is.
Checking your IP address from your computer's command line
Windows and Mac both have built-in tools to show your public IP without opening a browser. On Windows, open Command Prompt (search for "cmd" in the Start menu) and type curl ifconfig.me, then press Enter. Your public IP appears on the next line.
On Mac, open Terminal (search for "Terminal" in Spotlight) and type the same command: curl ifconfig.me. The result is identical. This method works because the command reaches out to a server that echoes your IP back to you, similar to the online tools but done through your computer's command line instead of a browser.
This approach is useful if you are already working in the command line for other tasks, but for most people the online tool is simpler and faster.
Understanding static versus dynamic IP addresses
Most home internet plans come with a dynamic IP address, which means your ISP reassigns the number periodically — usually every few months, or sometimes when you power cycle your modem. You do not need to do anything; the change happens automatically. This is why the IP address you find today may be different from the one you find in three months.
A static IP address stays the same indefinitely. Your ISP will not change it unless you request it. Static IPs cost extra — typically five to fifteen dollars per month depending on your provider — and are useful only if you need a consistent address for remote access, hosting a server, or security camera systems. For normal internet use, a dynamic IP works fine and is the standard option.
You can check whether your IP is static or dynamic by noting your public IP address today, then checking it again in a few weeks. If it is the same, it is likely static. If it has changed, it is dynamic. Your router's status page also sometimes labels this information directly.
What to do if you cannot access your router settings
If you forget your router password or cannot reach the settings page at 192.168.1.1, the online IP lookup tool is your only option without resetting the router. Resetting erases all your custom settings and returns the router to factory defaults, which is disruptive and should be a last resort.
If you do reset the router, hold down the reset button on the back for ten to fifteen seconds while the router is powered on. The lights will flash and the router will restart. Once it boots, you can log in with the default username and password printed on the sticker. After logging in, you will need to reconnect to your WiFi network and reconfigure any custom settings you had before.
Why websites can see your public IP address
Every time you visit a website, your browser sends a request from your public IP address. The website's server logs that IP so it knows where to send the webpage back to. This is how the internet works — servers need a return address, just like mail needs a return address. Your public IP is that return address.
This is also why your public IP is not secret. Websites, advertisers, and anyone running a server can see it. This is different from your private IP address (like 192.168.1.5), which only devices on your home network can see. Your router acts as a shield, translating between the public IP the outside world sees and the private IPs your devices use internally.
Frequently Asked Questions
Is my public IP address the same as my address at home?
No. Your public IP address is a number assigned by your ISP to your internet connection. It does not reveal your physical street address. Websites can see your approximate location (usually your city or region) based on the IP, but not your home address or exact location.
Can I change my public IP address myself?
You can force a change by restarting your modem — turn it off, wait thirty seconds, and turn it back on. Your ISP will assign a new IP when it reconnects. However, the new address is still assigned by your ISP, not chosen by you. If you need a specific IP that does not change, you must request a static IP from your ISP and pay the monthly fee.
What is the difference between my public IP and my private IP?
Your public IP is assigned by your ISP and is visible to the internet. Your private IP is assigned by your router to each device on your home network (like 192.168.1.5 for your laptop). Only devices on your home network can see private IPs. The router translates between them so your devices can reach the internet.
Do I need to hide my public IP address?
For normal internet use, no. Your public IP is visible by design and is necessary for the internet to work. If you want to hide it for privacy reasons, you can use a VPN service, which routes your traffic through another server so websites see the VPN's IP instead of yours. However, this is optional and not required for basic security.
Why did my public IP address change?
If you have a dynamic IP (the standard option), your ISP reassigns it periodically — usually every few months. You can also trigger a change by restarting your modem. If you need the same IP address always, contact your ISP about upgrading to a static IP, which costs extra per month.