Finding your IP address on Windows, Mac, or Linux
Your computer has an IP address right now — it's the number your device uses to talk to other devices on the internet or your home network. You may need to find it to troubleshoot a connection problem, set up a printer on your network, or give it to tech support. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but the process takes less than a minute on any of them.
On Windows 10 or 11, the fastest way is to open Settings, go to Network & Internet, then select WiFi or Ethernet depending on how you're connected. Click on your active connection name, scroll down, and you'll see "IPv4 address" listed there — that's your IP address. It will look something like 192.168.1.45 or 10.0.0.12.
On Mac, open System Settings (or System Preferences on older versions), click Network on the left side, select your active connection, and your IP address appears in the window — labeled simply as "IP Address". On Linux, open a terminal and type hostname -I, then press Enter. Your IP address will print on the next line.
Key Takeaways
- Windows users can find their IP address in Settings under Network & Internet, listed as "IPv4 address" next to their active connection.
- Mac users open System Settings, click Network, and see the IP address displayed directly in the connection details.
- Linux users type hostname -I in a terminal to see their IP address instantly.
- Your IP address on your home network usually starts with 192.168 or 10.0 and changes only when you restart your device or router.
- If you need your public IP address (the one the internet sees), you can find it by searching "what is my IP" in any web browser.
The difference between your local and public IP address
When you look up your IP address on your computer, you're usually seeing your local IP address — the number your device uses inside your home or office network. This address is private and only devices on your network can reach it. It typically starts with 192.168 or 10.0 and is assigned by your router.
Your public IP address is different. It's the number that websites and internet services see when you connect to them. Your internet service provider assigns this to your router, and it's visible to the outside world. To find your public IP, open any web browser and search for "what is my IP" — the results will show you immediately. You can also visit websites like whatismyipaddress.com or ipinfo.io, which display your public IP without needing to install anything.
You need your local IP address when you're setting up devices on your home network — like connecting a printer, configuring a security camera, or giving tech support access to your machine. You need your public IP address much less often, usually only if you're hosting something online or troubleshooting a connection with your internet provider.
Using the command line if Settings doesn't show your address
If you can't find your IP address in Settings or System Settings, the command line method works on any computer and is often faster. On Windows, press the Windows key, type "cmd" to open Command Prompt, then type ipconfig and press Enter. Look for "IPv4 Address" in the output — that's your local IP.
On Mac, open Terminal (search for it in Spotlight), type ifconfig, and press Enter. Look for the line that says "inet" followed by a number — that's your IP address. You'll see multiple entries if you have both WiFi and Ethernet; the one under "en0" or "en1" is usually your active connection.
The command line method is also useful if your computer is having network problems. Sometimes the graphical settings won't load properly, but the command line still works. If you see an IP address starting with 169.254, your computer isn't properly connected to the network — restart your router and try again in a few seconds.
Why you might need to know your IP address
The most common reason to look up your IP address is to set up a device on your home network. If you're installing a wireless printer, a security camera, or a smart home device, you often need to type your computer's IP address into a setup page to tell the new device where to find your network. Knowing your IP address makes this process straightforward.
Tech support may also ask for your IP address when troubleshooting connection problems. They use it to understand which part of your network isn't working — whether the problem is between your computer and router, or between your router and the internet. Giving them your local IP address (the one on your network) helps them narrow down the issue faster.
If you're hosting a game server, running remote access software, or setting up a home server, you'll need your public IP address. Some people also check their public IP periodically to see if it has changed — internet providers sometimes reassign public IPs, which can affect port forwarding or remote access setups.
What to do if your IP address keeps changing
Your local IP address usually stays the same as long as your computer and router stay on. If you restart either one, your router may assign a new local IP address — this is normal and usually not a problem. However, if your IP address changes frequently while everything is running, it can cause issues with printers, cameras, or remote access.
To keep your local IP address stable, you can assign a static IP address to your computer through your router's settings. This tells the router to always give your computer the same IP address. The steps vary by router brand, but you typically log into your router's admin page (usually 192.168.1.1 or 192.168.0.1 in your browser), find the DHCP or IP Reservation settings, and add your computer's MAC address with a fixed IP.
Your public IP address may change periodically depending on your internet provider. Most home internet plans use dynamic public IPs, which can shift every few days or weeks. If you need a stable public IP for hosting or remote access, contact your internet provider — some offer static public IP addresses for an additional monthly fee.
Checking your IP address on a phone or tablet
You can also look up the IP address on your phone or tablet if you need it. On an iPhone or iPad, go to Settings, tap WiFi, then tap the information icon (i) next to your network name. Your IP address appears under "IP Address". On Android, go to Settings, tap About Phone (or About Device), then tap Status or Network. Your IP address is listed there.
Mobile devices also have local IP addresses on your home network, just like computers do. If you're setting up a device that needs to communicate with your phone — like a smart home app controlling a camera — you may need your phone's IP address. The process is the same: find it in network settings, then use it in the setup page for the other device.
Frequently Asked Questions
Is it safe to share my IP address?
Your local IP address is safe to share — it only works on your home network and is useless to someone outside it. Your public IP address is already visible to every website you visit, so sharing it isn't a security risk by itself. However, don't share either one with strangers online unless you have a specific reason, like tech support troubleshooting your connection.
Why does my IP address look different in Settings than in the command line?
This usually means you have multiple network connections active — for example, both WiFi and Ethernet plugged in at the same time. Each connection gets its own IP address. Check which one you're actually using (WiFi or wired), then look for that connection's IP in the command line output.
Can I change my IP address myself?
You can request a new public IP from your internet provider by restarting your modem, though they may assign you the same one. For your local IP, you can set a static address through your router settings, or you can unplug your router for 30 seconds and restart it to get a different local IP assigned. Most people don't need to change their IP address — it's usually only necessary for network troubleshooting.
What if I can't find my IP address using any of these methods?
If Settings, System Settings, and the command line all fail to show an IP address, your computer likely isn't connected to the network. Check that your WiFi is turned on or your Ethernet cable is plugged in, then restart your computer and try again. If you still see no IP address, restart your router as well.