Finding your IP address takes less than a minute on any operating system
Your computer's IP address is a set of numbers that identifies it on a network — either your home WiFi or the internet at large. You might need to find it to troubleshoot a connection problem, set up a printer on your network, or give technical support someone a specific identifier. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but all three methods are straightforward and require no special software.
This guide walks you through finding both your local IP address (the one your router assigns to your computer) and your public IP address (the one the wider internet sees). Most of the time you'll want the local one, but knowing the difference helps you understand which number to use.
Key Takeaways
- Your local IP address appears in Windows Settings under Network, in Mac System Settings under WiFi or Ethernet details, or in Linux terminal using the ip addr command.
- The quickest way to find your public IP address is to visit a website like whatismyipaddress.com or search "what is my IP" in any browser.
- Local IP addresses usually start with 192.168 or 10.0 and stay the same unless your router restarts or you manually change them.
- You need your local IP address to access your router's settings or connect devices like printers to your network.
Finding your local IP address in Windows 10 and 11
Open Settings by pressing the Windows key and typing "Settings", then click the app that appears. Go to Network & Internet on the left side. If you're connected by WiFi, click WiFi and then click the name of your network. Scroll down to find IPv4 address — that's your local IP address, and it will look something like 192.168.1.105.
If you're connected by ethernet cable instead, click Ethernet in the same menu and scroll down to find the IPv4 address the same way. Both methods show the same type of information; the difference is just which connection type you're using.
An alternative method that works in any Windows version: press Windows key + R, type cmd, and press Enter. In the command prompt window, type ipconfig and press Enter. Look for the line that says IPv4 Address under your active connection — that's your local IP address.
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. If you're on WiFi, click your network name on the right. If you're on ethernet, click Ethernet. Look for the line labeled IP Address — that's the number you need.
If you prefer using the terminal, open Terminal (search for it in Spotlight by pressing Command + Space). Type ifconfig | grep inet and press Enter. You'll see several lines; look for the one under your active connection that starts with "inet" and shows a number like 192.168.1.105 or 10.0.0.50. That's your local IP address.
Finding your local IP address in Linux
Open a terminal window. Type ip addr show and press Enter. You'll see output for each network connection on your system. Look for the section labeled with your connection name (often eth0 for ethernet or wlan0 for WiFi). Find the line that starts with "inet" followed by a number — that's your local IP address.
A simpler alternative if you're not comfortable reading terminal output: type hostname -I and press Enter. This shows just your local IP address without extra information.
Finding your public IP address
Your public IP address is what websites and services on the internet see when you connect to them. It's different from your local IP address and is assigned by your internet service provider. To find it, open any web browser and search for "what is my IP" or visit a site like whatismyipaddress.com. The page will display your public IP address immediately — usually a set of four numbers separated by periods, like 203.45.67.89.
You rarely need your public IP address for everyday tasks. It's useful mainly if you're setting up remote access to your computer, troubleshooting with your internet provider, or checking whether your location appears correct to websites.
Why your local IP address might change
Your router assigns your computer a local IP address each time it connects to the network. Most home routers are set to assign addresses automatically using DHCP (Dynamic Host Configuration Protocol). This means your computer's local IP address can change if you restart your router, restart your computer, or disconnect and reconnect to the network.
If you need the same IP address to stay constant — for example, to always reach a printer at the same address — you can set a static IP address in your router's settings. This is a more advanced step, but most router instruction manuals explain how to do it. For most everyday purposes, the automatic assignment is fine and you don't need to worry about changes.
What to do if you can't find your IP address
If you follow the steps above and don't see an IP address, check that you're actually connected to a network. Look for a WiFi icon in your system tray (Windows) or menu bar (Mac), or check your ethernet cable is plugged in. If you're connected but still don't see an address, try restarting your computer and checking again.
If you're on a network managed by a school or workplace, your IT department may have restrictions that prevent you from seeing this information. In that case, contact them directly — they can tell you your local IP address or help you troubleshoot the connection.
Frequently Asked Questions
Is my local IP address the same as my public IP address?
No. Your local IP address is assigned by your router and only works on your home network. Your public IP address is assigned by your internet provider and is what the internet sees. They're different numbers serving different purposes.
Can someone use my IP address to hack me?
Your local IP address is only visible to devices on your home network, so it's not a security risk by itself. Your public IP address is visible to websites you visit, but it only identifies your internet connection, not your computer specifically. Neither one is enough for someone to hack you without additional information or vulnerabilities.
Why do I see multiple IP addresses when I search?
If you have multiple network connections (WiFi and ethernet, for example), your computer may have a different local IP address for each one. You'll also see IPv6 addresses, which are a newer format — they're longer and contain letters. For most home network tasks, use the IPv4 address (the one with four numbers separated by periods).
Will my public IP address change?
It may, depending on your internet provider. Some providers assign the same public IP address for months or years. Others change it regularly, sometimes every few days. If you need a stable public IP address for remote access, contact your provider to ask about static IP options — they usually charge a small monthly fee.