What your IP address is and why you might need it
Your computer's IP address is a set of numbers that identifies it on your network — like a mailing address for data. It looks like four numbers separated by dots, such as 192.168.1.5 (called an IPv4 address) or a longer string of numbers and letters like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 (called an IPv6 address). Most home networks use IPv4.
You might need to find this address to troubleshoot a connection problem, set up a printer or smart device on your network, access your computer remotely, or configure your router. The method depends on whether you use Windows, Mac, or Linux, and whether you want your local IP address (the one on your home or office network) or your public IP address (the one your internet service provider assigns to your whole network).
Key Takeaways
- Your local IP address appears in Settings on Windows, System Preferences on Mac, or the terminal on Linux, and is usually a number starting with 192.168 or 10.
- 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.
- The method to find your local address differs by operating system, but all take fewer than two minutes.
- If you cannot find your IP address using these steps, your network cable may be unplugged or your Wi-Fi may be disconnected.
Finding your local IP address on Windows
On Windows 10 or 11, open Settings by pressing the Windows key and typing "Settings", then click the app. Go to Network & Internet, then Status. Scroll down and click "View your network properties". You will see a section labeled "IPv4 address" with a number like 192.168.1.5 or 10.0.0.3.
If you prefer the command line, press Windows key + R, type cmd, and press Enter. Type ipconfig and press Enter. Look for "IPv4 Address" in the output — it will be under the network connection you are currently using (Ethernet or Wi-Fi).
On older versions of Windows (7 or 8), right-click the network icon in the system tray, select "Open Network and Sharing Center", click your connection name, then click "Details". The IPv4 Address field shows your local address.
Finding your local IP address on Mac
Click the Apple menu and select System Preferences (or System Settings on newer versions). Click Network. Select your active connection — either Wi-Fi or Ethernet — from the list on the left. Your IP address appears in the main panel labeled "IPv4 Address".
If you use the terminal instead, press Command + Space to open Spotlight, type terminal, and press Enter. Type ifconfig and press Enter. Look for the section labeled with your connection type (en0 for Ethernet, en1 for Wi-Fi). Your IP address is next to "inet" and will be a number like 192.168.1.10.
Finding your local IP address on Linux
Open a terminal window. Type hostname -I and 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 does not work, try ip addr show instead. Look for the section labeled with your connection name (usually eth0 for Ethernet or wlan0 for Wi-Fi). Your IP address appears next to "inet" and is the first number in that line.
Finding your public IP address
Your public IP address is what the outside world sees when you browse the internet. To find it, open any web browser and search for "what is my IP". The first result will show your public address — a number assigned by your internet service provider to your entire network.
You can also visit websites like whatismyipaddress.com or ipinfo.io, which display your public IP address immediately. This address changes periodically depending on your internet service provider's settings, and it is the same for every device on your home network (unless you use a VPN).
What to do if you cannot find your IP address
If the steps above do not show an IP address, or if you see an address starting with 169.254, your computer is not connected to the network. Check that your Ethernet cable is plugged in, or that you are connected to your Wi-Fi network and the password is correct.
If you are connected but still see no address, restart your computer and try again. If the problem persists, your router may not be assigning addresses correctly — try restarting the router by unplugging it for 30 seconds, then plugging it back in and waiting two minutes for it to fully restart.
Why you have both a local and public IP address
Your local IP address is used only within your home or office network — your computer uses it to talk to your printer, smart TV, or other devices on the same Wi-Fi or Ethernet. Your public IP address is used when you connect to the internet outside your network, like when you visit a website.
Your router sits between these two networks and translates between them. When you request a webpage, your computer sends the request to your router using your local IP address. The router then sends that request to the internet using your public IP address, and sends the response back to your computer. This is why you need your local address to set up devices at home, but websites only see your public address.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your MAC address is a different identifier used only on your local network, and it looks like six pairs of letters and numbers (like 00:1A:2B:3C:4D:5E). Your IP address is the four-number format. Both identify your computer, but they work at different layers of your network.
Will my IP address change?
Your local IP address usually stays the same unless you restart your router or your computer is unplugged for a long time. Your public IP address changes periodically — how often depends on your internet service provider, but it might be weeks or months between changes. If you need a stable address for remote access, you can configure your router to assign a static local IP to your computer.
Can I hide my IP address?
Your local IP address is visible only to devices on your network, so there is nothing to hide there. Your public IP address is visible to websites you visit, but you can mask it by using a VPN (virtual private network), which routes your traffic through another server. This is a separate tool from finding your address.
Why do I see multiple IP addresses when I run ipconfig or ifconfig?
Your computer may have multiple network connections — for example, both Ethernet and Wi-Fi. Each connection gets its own IP address. Look for the one labeled as your active connection (the one you are actually using to reach the internet). You can also check which connection is active in your network settings.