What an IP address is and why you might need to find yours

Your IP address is a number that identifies your device on a network — like a mailing address for your computer. It looks like four numbers separated by dots, such as 192.168.1.5. You might need to find it to troubleshoot a connection problem, set up a printer on your home network, or give technical support someone the information they need to help you.

There are two types. Your local IP address is what your device uses inside your home or office network. Your public IP address is what the internet sees when you connect — it's assigned by your internet provider. Both are useful in different situations, and both are simple to find.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig to see your local IP address listed as "IPv4 Address".
  • On Mac, go to System Settings, click Network, select your connection, and look for the IP address shown on the right side.
  • On Linux, open a terminal and type hostname -I to display your local IP address.
  • To find your public IP address, search "what is my IP" in any web browser — the first result will show it.
  • Your local IP address stays the same most of the time, but your public IP address can change when you restart your router.

Finding your local IP address on Windows

The fastest way on Windows is through Command Prompt. Right-click the Start button, select "Windows Terminal (Admin)" or "Command Prompt (Admin)", and type ipconfig then press Enter. Look for the line that says "IPv4 Address" — that number is your local IP address.

If you prefer not to use the command line, you can also find it through Settings. Open Settings, go to Network & Internet, click on your connection type (Wi-Fi or Ethernet), and scroll down. Your IP address will be listed under "IP address".

Finding your local IP address on Mac

On Mac, click the Apple menu in the top-left corner and select "System Settings". Click "Network" in the sidebar, then click the connection you're using (Wi-Fi or Ethernet). On the right side of the window, you'll see your IP address listed next to "IP Address".

If you're connected to Wi-Fi, you can also click the Wi-Fi icon in the menu bar at the top, hold down the Option key, and click your network name — this shows your IP address in a small popup window.

Finding your local IP address on Linux

Open a terminal window and type hostname -I then press Enter. Your local IP address will appear on the next line. This works on most Linux distributions including Ubuntu, Fedora, and Debian.

If that command doesn't work, try ip addr show instead. Look for the line that starts with "inet" under your active connection — the number after "inet" is your IP address.

Finding your public IP address

Your public IP address is what websites see when you connect to them. To find it, open any web browser and search for "what is my IP". The first result will show your public IP address prominently at the top of the page. You can also visit websites like whatismyipaddress.com or ipinfo.io directly.

Your public IP address is assigned by your internet provider and can change when you restart your router or modem. If you restart and need to find it again, just search the same way — it takes five seconds.

Understanding the difference between local and public IP addresses

Your local IP address is used only inside your home or office network. It's how your router talks to your computer, printer, and other devices. These addresses always start with 192.168, 10.0, or 172.16 — they're reserved for private networks. You need your local IP to connect a printer, set up a smart home device, or troubleshoot network problems at home.

Your public IP address is assigned by your internet provider and is visible to every website you visit. It's how the internet knows where to send data back to you. This is the address you'd give to someone helping you troubleshoot an internet connection problem, or the one that appears in your router's logs when you check your internet history.

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

If the commands above don't work, check that you're connected to the network. On Windows, make sure you opened Command Prompt as Administrator — right-click and select "Run as Administrator". On Mac, confirm you're connected to Wi-Fi or Ethernet by checking the menu bar at the top.

If you're still stuck, restart your device and try again. Sometimes a network connection needs to be refreshed. If you're trying to find your public IP and a search isn't working, try a different browser or check your router's admin page — most routers display your public IP in their settings panel.

Frequently Asked Questions

Can I change my IP address?

Your local IP address can be changed through your router settings, but most people don't need to. Your public IP address is controlled by your internet provider — you can't change it directly, but restarting your modem sometimes assigns you a new one.

Is my IP address private information?

Your public IP address is visible to websites you visit and can be looked up by anyone, but it only shows your general location and internet provider — not your home address. Your local IP address is only visible to devices on your home network.

Why does my IP address keep changing?

Your public IP address changes when you restart your modem or router, or when your internet provider reassigns addresses. Your local IP address usually stays the same, but can change if your router restarts or if you manually change it in settings.

Do I need to know my IP address for everyday use?

Most people don't need it for everyday browsing or email. You typically need your IP address when setting up a new device on your network, troubleshooting a connection problem, or giving technical support someone information about your setup.

What if two devices have the same IP address?

This shouldn't happen on a working network — your router assigns each device a different local IP. If it does happen, restart both devices and your router. If the problem continues, you may need to restart your router's network settings.