What your IP address is and why you might need to see it

Your IP address is a set of numbers that identifies your device on a network — like a mailing address for your computer. It looks like four numbers separated by dots: 192.168.1.5 or something similar. You might need to find it to troubleshoot a connection problem, set up a printer on your home network, or give it to technical support.

There are two types. Your local IP address (also called private IP) is what your device uses inside your home or office network. Your public IP address is what websites and services see when you connect to the internet — it's assigned by your internet provider. Both are useful in different situations, and the steps to find each one are different.

Key Takeaways

  • Your local IP address appears in network settings on your device and usually starts with 192.168 or 10.
  • Windows users can find their local IP by opening Command Prompt and typing ipconfig, then looking for "IPv4 Address".
  • Mac and Linux users can open Terminal and type ifconfig or ip addr to see the same information.
  • Your public IP address (what the internet sees) can be found by visiting a website like whatismyipaddress.com in any browser.
  • If you need to give your IP to someone, confirm whether they want your local address (for home network help) or public address (for internet-level issues).

Finding your local IP address on Windows

Open the Start menu and type cmd into the search box. Click on Command Prompt when it appears. In the black window that opens, type ipconfig and press Enter. A list of information will appear.

Look for the section labeled with your network connection name (usually "Ethernet" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi). Under that section, find the line that says "IPv4 Address". The number next to it is your local IP address. It will usually start with 192.168 or 10.

If you prefer not to use Command Prompt, you can also go through Settings. Click the Start menu, then Settings, then Network & Internet. On the left side, click Status. Scroll down and click "View your network properties". Your IPv4 address will be listed there.

Finding your local IP address on Mac

Click the Apple menu in the top left corner and select System Settings (or System Preferences on older versions). Click Network on the left side. Select your active connection — either Wi-Fi or Ethernet, depending on how you're connected. Your local IP address will be displayed next to "IPv4 Address".

If you want to use Terminal instead, click the Spotlight search icon (magnifying glass in the top right), type terminal, and press Enter. In the Terminal window, type ifconfig and press Enter. Look for the section labeled en0 (Ethernet) or en1 (Wi-Fi). Your local IP address appears next to "inet" and usually starts with 192.168 or 10.

Finding your local IP address on Linux

Open a Terminal window. Type ip addr and press Enter. A detailed list of all network interfaces will appear. Look for the section labeled inet under your active connection (usually eth0 for Ethernet or wlan0 for Wi-Fi). The IP address listed there is your local address.

Alternatively, you can type ifconfig if the ip command is not available on your system. The output format is slightly different but contains the same information — look for "inet addr" or just "inet" to find your local IP.

Finding your public IP address

Your public IP address is what the internet sees when you visit websites or use online services. It's assigned by your internet provider and changes periodically. To find it, open any web browser and visit whatismyipaddress.com, myip.com, or ipchicken.com. Your public IP will be displayed prominently on the page.

You can also find your public IP through your router's settings page, though this is less common. Log into your router (usually by typing 192.168.1.1 or 192.168.0.1 into a browser address bar), then look for a status or information page. The public IP is often listed there as "WAN IP" or "Internet IP".

When you need each type of IP address

Use your local IP address when you're setting up devices on your home or office network — connecting a printer, setting up a security camera, or troubleshooting why a device can't see another device on the same network. Technical support for your router or local network issues will also ask for this.

Use your public IP address when you're dealing with internet-level problems or services that need to reach you from outside your network. This includes reporting abuse to an online service, setting up remote access to your computer, or troubleshooting why a website is blocking you. If someone asks for your IP address and you're not sure which one they need, ask whether it's for something on your home network or something on the internet.

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

If the commands above don't work or produce no output, your network connection may not be active. Check that you're actually connected to Wi-Fi or that your Ethernet cable is plugged in. Look for a network icon in your system tray (bottom right on Windows, top right on Mac) to confirm you're connected.

If you're connected but still see no results, your network adapter may not be configured correctly. Restart your computer and try again. If the problem continues, restart your router by unplugging it for 30 seconds, plugging it back in, and waiting for it to fully boot up. Then run the commands again.

Frequently Asked Questions

Is it dangerous to share my IP address?

Sharing your public IP address carries minimal risk on its own — websites already know it when you visit them. However, do not share it with strangers or post it publicly, as it can be used to target you with attacks or to look up your approximate location. Your local IP address is safe to share with people helping you troubleshoot your home network.

Why does my IP address change?

Your public IP address changes because your internet provider recycles them among customers. This usually happens every few days to weeks. Your local IP address can also change if your router restarts or if you reconnect to the network, though most home routers keep the same local IPs for the same devices.

Can I change my IP address?

Your public IP address will change on its own over time, or you can force a change by unplugging your modem for a few minutes. Your local IP address can be changed through your router settings or your device's network settings, but this is rarely necessary and can break things if done incorrectly.

What if I see multiple IP addresses listed?

If you see more than one address, you likely have multiple network connections active — for example, both Ethernet and Wi-Fi. Use the one that matches how you're actually connected to the network. Ignore any addresses that start with 127 (those are internal to your computer only).