What your IP address is and why you might need it

Your IP address is a set of numbers that identifies your device on a network — like a mailing address for your computer or phone. It looks like four numbers separated by dots: 192.168.1.5 or 8.8.8.8. You have two kinds: a local IP address that identifies you within your home or office network, and a public IP address that identifies you to the wider internet.

You might need to find your IP address to troubleshoot a connection problem, set up a printer or smart home device on your network, access a device remotely, or provide it to technical support. The steps differ depending on whether you're looking for your local address (which stays the same on your home network) or your public address (which your internet provider assigns and can change).

Key Takeaways

  • Your local IP address is found in your device's network settings and typically starts with 192.168 or 10.0.
  • Your public IP address is what websites see when you visit them, and you can find it by searching "what is my IP" in any browser.
  • On Windows, use Settings > Network or the Command Prompt; on Mac, use System Settings > Network; on iPhone or Android, check Wi-Fi settings.
  • Your local IP address usually stays the same, but your public IP can change when your modem restarts or your internet provider reassigns it.

Finding your local IP address on Windows

On Windows 10 or 11, open Settings and go to Network & Internet, then select Wi-Fi or Ethernet depending on how you're connected. Click on the network you're using, scroll down to "IP settings," and you'll see your IPv4 address listed there — that's your local IP.

If you prefer the Command Prompt, press Windows key + R, type cmd, and press Enter. Type ipconfig and press Enter. Look for "IPv4 Address" under your active connection — the number next to it is your local IP address.

Finding your local IP address on Mac

Click the Apple menu, go to System Settings, then select Network from the sidebar. Click on your active connection (Wi-Fi or Ethernet), and your local IP address appears in the details pane labeled "IP Address."

You can also open Terminal (find it in Applications > Utilities) and type ifconfig, then press Enter. Look for "inet" under your active connection — the number next to it is your local IP address.

Finding your local IP address on iPhone or Android

On iPhone, go to Settings > Wi-Fi, tap the network you're connected to, and scroll down — your IP address is listed under "IP Address." On Android, go to Settings > Network & Internet > Wi-Fi, tap the network you're connected to, and tap "Advanced" or "Manage" — your IP address appears in the details.

If you're using cellular data instead of Wi-Fi, your local IP address won't appear in these settings because you're not on a local network. Your device will have a public IP address assigned by your mobile carrier, but you can't see it in your phone's settings.

Finding your public IP address

Your public IP address is what websites and online services see when you connect to them. The easiest way to find it is to open any web browser and search for "what is my IP" — Google and other search engines will display your public IP address at the top of the results. You can also visit websites like whatismyipaddress.com or ipinfo.io, which show your public IP and sometimes additional information like your approximate location and internet provider.

Your public IP address can change when your modem restarts, when your internet provider reassigns addresses, or if you're using a VPN (which masks your real public IP). Your local IP address, by contrast, typically stays the same as long as you stay on the same network.

Why your IP address might change

Your internet provider assigns your public IP address using DHCP (Dynamic Host Configuration Protocol), which means it can change. Most home connections get a new public IP every few days to a few months, depending on your provider's settings. If you need a permanent public IP, you can contact your internet provider to request a static IP, though this usually costs extra.

Your local IP address can also change if your router's DHCP settings reassign addresses, though this is less common. If you need a device to keep the same local IP (for example, to set up port forwarding for a security camera), you can assign a static local IP in your router's settings or in the device's network configuration.

What to do if you can't find your IP address

If the steps above don't show an IP address, your device may not be connected to the network. Check that Wi-Fi or Ethernet is turned on and that you're connected to the correct network. Restart your device and your router — unplug the router for 30 seconds, plug it back in, and wait for the lights to stabilize before checking again.

If you're still not seeing an IP address after reconnecting, your router may not be assigning addresses correctly. Restart your router again, or if the problem continues, contact your internet provider's technical support. They can confirm whether your modem is working and whether your account is active.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a hardware identifier that only works on your local network, while your IP address works across networks and the internet. Both are useful for different purposes — MAC addresses for connecting devices on your home network, IP addresses for internet communication.

Can someone find my location from my IP address?

Your public IP address can be traced to your internet provider and approximate geographic area, but not to your exact street address. Your local IP address only works within your home or office network and reveals nothing to the outside world.

What's the difference between IPv4 and IPv6?

IPv4 addresses use four numbers (like 192.168.1.1) and are the most common format. IPv6 addresses use longer alphanumeric codes and are the newer standard, designed to handle more devices as the internet grows. Most home networks still use IPv4, though many now support both.

Why do I need to know my local IP if I can just use the device's name?

Device names (like "My-MacBook") work on your local network if your router supports them, but some older devices or printers only respond to IP addresses. Knowing your local IP is useful for troubleshooting, setting up port forwarding, or accessing a device when names don't work.

Should I hide or change my public IP address?

Your public IP is visible to every website you visit — it's how they send data back to you. If you want to mask it, you can use a VPN, which routes your traffic through another server. This hides your real IP from websites but introduces a different privacy consideration: you're trusting the VPN provider instead.