Finding your IP address in Windows, Mac, and Linux

Your IP address is a set of numbers that identifies your device on a network — like a mailing address for your computer. You have two types: a local IP address (used only on your home or office network) and a public IP address (visible to websites and services on the internet). The steps to find each one differ slightly depending on your operating system.

On Windows 10 or 11, the fastest way is to open Command Prompt and type ipconfig, then press Enter. Look for "IPv4 Address" in the results — that is your local IP. To find your public IP, open any web browser and search "what is my IP" or visit a site like whatismyipaddress.com.

On Mac, go to System Preferences (or System Settings on newer versions), click Network, select your connection, and your local IP appears in the window. For your public IP, use the same browser search method as Windows.

On Linux, open a terminal and type hostname -I for your local IP, or curl ifconfig.me for your public IP.

Finding your IP address on phones and tablets

On iPhone or iPad, go to Settings, tap Wi-Fi, and select the network you are connected to. Your local IP appears under the network name. For your public IP, open Safari and search "what is my IP."

On Android, go to Settings, tap About Phone (or About Device), then scroll to find IP Address. This shows your local IP. Some Android versions place it under Network or Wi-Fi settings instead — if you cannot find it in About Phone, check those sections. Again, use a browser search for your public IP.

Key Takeaways

  • Your local IP address appears in Command Prompt (Windows), System Preferences (Mac), terminal (Linux), or Settings (phones), and is used only within your home or office network.
  • Your public IP address is what websites see and can be found by searching "what is my IP" in any web browser.
  • Windows users should type ipconfig in Command Prompt to see their local IP quickly.
  • If you cannot find your IP in Settings on Android, check the Wi-Fi or Network section — the location varies by manufacturer and Android version.

Why you might need to check your IP address

Knowing your local IP is useful when you need to connect to a printer, security camera, or router settings on your network. You enter the IP address into your browser to reach the device directly. It is also needed if you are troubleshooting network problems or setting up port forwarding.

Your public IP matters less often, but you may need it if you are setting up remote access to your computer, checking whether your location is being tracked correctly, or investigating why a website is blocking you. Some services also ask for your public IP when you contact support about connection issues.

Understanding the difference between local and public IP addresses

A local IP address is assigned by your router to each device on your home or office network. It usually starts with 192.168, 10.0, or 172.16 and is only visible to other devices on the same network. Your router uses it to send data to the right device.

A public IP address is assigned by your internet service provider and is visible to every website and service you connect to online. It identifies your entire network to the outside world, not individual devices. When you visit a website, the site sees your public IP, not your local one.

If you have multiple devices at home, they all share the same public IP but each has its own local IP. This is why port forwarding (a router setting) is needed to direct traffic from your public IP to a specific device on your local network.

What to do if your IP address keeps changing

Most home internet connections have a dynamic IP address, meaning your public IP changes periodically — sometimes daily, sometimes weekly. This is normal and set by your internet service provider. If you need a stable public IP for remote access or hosting, contact your provider about upgrading to a static IP address, which costs extra but does not change.

Your local IP can also change if your router restarts or your device reconnects to the network. If you need a device to always have the same local IP, you can set a static local IP in your router settings or on the device itself. This is common for printers and security cameras so you can always reach them at the same address.

Checking your IP address on a router

Your router itself has a local IP address (usually 192.168.1.1 or 192.168.0.1) that you use to access its settings. To find it, open a web browser and type one of those addresses into the address bar, or search your router's manual. You will be asked to log in — the default username and password are often printed on the router itself or in the manual.

Once logged in, you can see all the devices connected to your network, their local IP addresses, and other network settings. This is useful if you need to restart the router, change your Wi-Fi password, or set up port forwarding.

Frequently Asked Questions

Can someone see my IP address and find out where I live?

Your public IP can be traced to your internet service provider and general location (usually your city or region), but not your exact street address. Websites and services see your public IP, but most cannot pinpoint your home without additional information. A VPN masks your public IP by routing your traffic through another server.

Is my local IP address private and safe?

Your local IP is only visible to devices on your own network, so it is safe. Websites and people on the internet cannot see it. It is used only for communication between your devices and router.

Why does my IP address show a different location than where I actually am?

IP geolocation databases are not always accurate and may place you in a nearby city or region instead of your exact location. The database is updated periodically but lags behind real changes. If a website is blocking you based on location, contact their support — they may be able to override it.

What should I do if I see an unfamiliar IP address on my network?

Log into your router and check the list of connected devices. If you see a device you do not recognize, note its MAC address and look it up online to identify it — it may be a phone, smart home device, or guest device. If it is truly unknown, change your Wi-Fi password and restart the router to disconnect it.