What your IP address is and why you might need it

Your Internet Protocol address (IP address) is a unique number assigned to your device whenever it connects to the internet. It works like a mailing address — it tells websites and services where to send information back to you. You might need to find it to troubleshoot a connection problem, set up a device on your home network, or give it to technical support when something isn't working.

There are two types. Your public IP address is what the wider internet sees — it's assigned by your internet service provider and identifies your entire household's connection. Your private IP address is used only within your home network and identifies one specific device among the computers, phones, and gadgets connected to your router.

Key Takeaways

  • Your public IP address is visible to websites you visit; your private IP address is only used between your device and your home router.
  • To find your public IP address, search "what is my IP" in any browser or visit a site like whatismyipaddress.com.
  • To find your private IP address on Windows, open Command Prompt and type ipconfig; on Mac, go to System Settings > Network and look for the address listed there.
  • Your IP address changes periodically — your public one when your router restarts, your private one if you reconnect to your network.
  • Knowing your IP address does not expose you to significant risk on its own, but do not share your public IP with people you do not trust.

Finding your public IP address in a browser

The fastest way is to let a website tell you. Open any web browser and search for "what is my IP" or "my IP address." The first result will usually be a site that displays your public IP immediately — no account needed, no download required.

Alternatively, visit whatismyipaddress.com, ipinfo.io, or iplocation.net directly. These sites show your public IP address and sometimes additional information like your approximate location (based on where your internet provider's servers are, not your actual address). The location shown is often a city or region, not precise enough to pinpoint your home.

Finding your private IP address on Windows

Right-click the Start button and select Terminal (or search for "Command Prompt" if you're on an older version of Windows). A black window will open.

Type ipconfig and press Enter. Look for the section labeled with your network name. Find the line that says IPv4 Address — the number next to it is your private IP address. It usually starts with 192.168 or 10.0.

Close the window when you're done. You can take a screenshot or write the number down if you need it for setup or troubleshooting.

Finding your private IP address on Mac

Click the Apple menu in the top-left corner and select System Settings. In the sidebar, click Network.

Select the network you're currently connected to (usually Wi-Fi). On the right side, you'll see a section labeled IPv4 Address — the number shown there is your private IP address. Like Windows, it usually starts with 192.168 or 10.0.

Finding your private IP address on iPhone or iPad

Open Settings and tap Wi-Fi. Tap the network you're connected to (the one with a checkmark). Scroll down to find IPv4 Address — that's your private IP on that device.

If you're using cellular data instead of Wi-Fi, your device has a private IP assigned by your carrier, but it's not usually visible in Settings. For most troubleshooting, you only need the Wi-Fi address.

Finding your private IP address on Android

Open Settings and go to About Phone or About Device (the exact name varies by manufacturer). Look for IP Address — that's your private IP on your current Wi-Fi network.

On some Android phones, you may need to go to Settings > Network & Internet > Wi-Fi, tap the network you're connected to, and look for IP Address in the details shown.

When your IP address changes and why

Your public IP address changes when your router restarts or loses power. Most internet service providers assign addresses that stay the same for months or years, but some rotate them periodically — usually every few days to a few weeks depending on your provider.

Your private IP address can change if you disconnect from your network and reconnect, or if your router restarts. If you need a device to keep the same private IP (for example, to set up port forwarding), you can assign it a static IP through your router settings. This is a separate configuration and is not the same as the automatic address your device receives.

What you should and should not do with your IP address

Your private IP address is safe to share — it only works on your home network and is useless to anyone outside it. Your public IP address is visible to every website you visit, so websites already know it. However, do not share your public IP with strangers or post it publicly, because someone with your IP and the right tools could attempt to scan your router for open ports or vulnerabilities.

If you're setting up a device or troubleshooting with technical support, it's normal and safe to provide your private IP address. If support asks for your public IP, verify you're actually talking to your internet service provider or the company whose service you're troubleshooting — scammers sometimes ask for this information.

Frequently Asked Questions

Can someone find my home address from my IP address?

No. Your IP address shows your internet provider's general service area, usually a city or region — not your street address or home location. Someone would need additional information and legal authority to connect an IP to a physical address.

Why does my IP address show a different city than where I live?

Your internet provider's servers may be located in a different city than your home. The IP location shown online is based on where those servers are registered, not where you actually are. This is normal and does not mean your connection is routed through that city.

Do I need to hide my public IP address?

For everyday browsing, no. Your public IP is visible to websites you visit and is not a security risk on its own. If you want to hide it for privacy reasons, you can use a VPN (virtual private network), but this is a choice, not a necessity for basic safety.

What's the difference between IPv4 and IPv6?

IPv4 addresses use four numbers separated by dots (like 192.168.1.1). IPv6 addresses use longer strings of numbers and letters (like 2001:0db8:85a3::8a2e:0370:7334). Most home networks still use IPv4, but IPv6 is becoming more common as the internet runs out of IPv4 addresses.

If I restart my router, will my private IP addresses change?

Usually not immediately. Most devices will request the same private IP they had before, and your router will usually grant it. However, if a device has been offline for a while or if you manually reset your router to factory settings, private IPs may be reassigned differently.