What an IP address is and why you might need yours
Your computer's IP address is a unique number that identifies it on a network — like a mailing address for data. It looks like four numbers separated by dots: 192.168.1.5 or similar. You need to know your IP address when you're troubleshooting network problems, setting up a printer or security camera on your home network, connecting to a remote computer, or helping someone diagnose why your device isn't connecting properly.
There are two types: your local IP address (the one your home or office router assigns you) and your public IP address (the one the internet sees). Most of the time you'll need your local IP address. Finding it takes less than a minute on any operating system.
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 your IP address appears in the details pane.
- On Linux, open a terminal and type hostname -I to display your local IP address immediately.
- Your local IP address usually starts with 192.168 or 10.0 and is what you need for home network devices like printers or cameras.
- If you need your public IP address instead, search "what is my IP" in any web browser to see what the internet sees.
Finding your IP address on Windows
The fastest way on Windows is through Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens. Type ipconfig and press Enter. You'll see a list of information. Look for the line that says "IPv4 Address" — the number next to it is your local IP address. It usually looks like 192.168.1.something or 10.0.0.something.
If you prefer not to use Command Prompt, you can find it through Settings instead. Click the Windows Start button, go to Settings, then Network & Internet. On the left side, click Status. Scroll down and click "Advanced network options". Find your network connection (usually called Ethernet or Wi-Fi) and click it. Your IP address appears under "IPv4 address".
Write down or screenshot your IP address so you have it when you need it. The number changes only if you restart your computer or your router assigns you a new one, which is rare for home networks.
Finding your IP address on Mac
On Mac, click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). In the sidebar, click Network. You'll see your network connections listed — usually Wi-Fi or Ethernet depending on how you're connected. Click the one you're using. On the right side, your IP address appears next to "IPv4 Address". It's usually a number starting with 192.168 or 10.0.
If you're connected to Wi-Fi, you can also click the Wi-Fi icon in the menu bar at the top of the screen, hold down the Option key, and click your network name. A dropdown shows your IP address and other network details.
The IP address shown here is your local address on your home or office network. This is what you need if you're setting up a device on the same network or troubleshooting a connection problem.
Finding your IP address on Linux
On Linux, open a terminal window. The fastest method is to type hostname -I and press Enter. Your local IP address appears immediately. If you're using a graphical desktop, you can also right-click the network icon in your taskbar and select connection details or settings, depending on your desktop environment.
For more detailed network information, type ip addr show in the terminal. This displays all your network interfaces and their IP addresses. Look for the one labeled "inet" (not "inet6") under the connection you're using — that's your local IP address.
Linux users often need this information for server setup, remote access, or network troubleshooting, so keeping a note of it in a text file is helpful if you work with your network regularly.
Understanding local versus public IP addresses
The IP address you find using the steps above is your local IP address — the one your router assigns to your computer on your home or office network. This is what you use when you're connecting to a printer, security camera, or another device on the same network.
Your public IP address is different. It's the address the wider internet sees when your computer sends data outside your network. Your router handles the translation between the two. If you need your public IP address, open any web browser and search "what is my IP". The first result shows your public address. You rarely need this unless you're setting up remote access to your computer from outside your home network.
Most home networks use IP addresses that start with 192.168 or 10.0 — these are reserved for local networks and never appear on the public internet. That's why you need the public address for anything outside your home.
What to do if you can't find your IP address
If the steps above don't show an IP address, your computer isn't connected to the network yet. Check that your Wi-Fi is turned on or your Ethernet cable is plugged in. On Windows, look at the Network icon in the bottom-right corner — it should show a connected status. On Mac, check the Wi-Fi icon in the top-right. On Linux, check your network settings in the system menu.
If you're connected but still don't see an IP address, restart your computer and try again. Sometimes the network connection needs a moment to fully initialize. If the problem continues, restart your router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully restart. Then check for your IP address again.
If you're on a network you don't control (like at work or school), ask your IT department or network administrator for your IP address. They may have assigned you a specific one or may need to help you troubleshoot the connection.
Using your IP address for common tasks
Once you have your local IP address, you can use it to connect to devices on your network. To access a printer's settings, type your printer's IP address into a web browser's address bar. To connect to a security camera, use its IP address the same way. To access another computer on your network remotely, you'll need its IP address and the right software installed on both machines.
You can also use your IP address to troubleshoot network problems. If a device isn't connecting, you can ping its IP address from Command Prompt (Windows), Terminal (Mac), or a terminal window (Linux) to see if it's reachable. Type ping 192.168.1.100 (replacing the number with the device's IP) and press Enter. If you get responses, the device is on the network. If you get "no response" or "unreachable", the device is offline or not connected.
Frequently Asked Questions
Will my IP address change if I restart my computer?
Usually not. Your router assigns your computer the same local IP address each time you connect, especially if you've been on that network for a while. However, if you're away from your network for an extended period or your router restarts, you might get a different address. This is normal and not a problem — just find it again using the steps above.
Is it safe to share my local IP address with someone?
Your local IP address is only useful on your home or office network, so sharing it with someone outside your network doesn't let them access anything. However, don't share it with strangers online. If you need remote support, use a dedicated remote access tool like TeamViewer or Microsoft Remote Desktop, which handles security for you.
What does "IPv6 Address" mean, and do I need it?
IPv6 is a newer version of IP addresses that uses longer numbers. Most home networks still use IPv4 (the four-number format). You probably don't need to worry about IPv6 unless you're doing advanced network setup. Stick with the IPv4 address for everyday tasks.
Can I change my computer's IP address?
You can, but you usually shouldn't. Your router assigns it automatically, and changing it manually can cause network problems. If you need a device to always have the same IP address, ask your router to assign it a "static" or "reserved" address instead — this is a router setting, not a computer setting.
Why do I see multiple IP addresses when I run ipconfig or ip addr?
Your computer might have multiple network connections — Wi-Fi, Ethernet, and virtual networks all show up. Look for the one labeled as your active connection. On Windows, it's under the network adapter you're currently using. On Linux, it's under the interface you're connected to (usually eth0 for Ethernet or wlan0 for Wi-Fi).