Finding your IP address takes less than a minute on any device
Your computer has two IP addresses you might need to know: a local IP address that identifies it on your home or office network, and a public IP address that identifies your entire network to the internet. The method to find each one differs slightly, and which one you need depends on what you're troubleshooting or setting up. Both are visible through built-in tools on Windows, Mac, and Linux — you don't need to download anything.
Your local IP usually starts with 192.168 or 10 and stays the same as long as you're on the same network. Your public IP is what websites see when you visit them, and it changes whenever your router restarts or your internet provider assigns you a new one. Knowing which one you need before you start looking saves time.
Key Takeaways
- Your local IP address appears in Settings on Windows or System Preferences on Mac, 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.
- On Windows, the Command Prompt command ipconfig shows your local IP in seconds; on Mac, use ifconfig in Terminal.
- If you're setting up a printer, camera, or other device on your network, you need the local IP address, not the public one.
Finding your local IP on Windows
Open Settings by pressing the Windows key and typing "Settings," then select the app. Go to Network and Internet, then select Wi-Fi or Ethernet depending on how you're connected. Click the network you're currently using, scroll down, and look for "IPv4 address" — that's your local IP. It usually looks like 192.168.1.100 or 10.0.0.50.
If you prefer the Command Prompt method, press Windows key + R, type cmd, and press Enter. Type ipconfig and press Enter. Look for "IPv4 Address" under your active connection — that's your local IP. This method is faster once you know the steps, and it also shows you other network details like your gateway and DNS servers.
Finding your local IP on Mac
Click the Apple menu, select System Settings, then click Network. Select your active connection (Wi-Fi or Ethernet) from the list on the left. Your local IP appears on the right side of the window next to "IP Address." On older Mac versions, go to System Preferences instead of System Settings, but the location is the same.
From Terminal, you can also type ifconfig and press Enter. Look for "inet" followed by a number — that's your local IP. Terminal is faster if you need to check this repeatedly, but the Settings method is simpler if you only need it once. The Terminal output also shows your MAC address and other network information if you need it.
Finding your public IP address
Open any web browser and search for "what is my IP" or "my IP address." Google, Bing, and most search engines will display your public IP at the top of the results page. You can also visit websites like whatismyipaddress.com or ipinfo.io, which show your public IP and sometimes additional details like your approximate location and internet provider.
Your public IP is what websites record when you visit them. It changes when you restart your router or when your internet provider assigns you a new one. Unlike your local IP, which stays the same on your home network, your public IP is visible to the outside internet and can be seen by any website you connect to.
When you need each type of IP address
Use your local IP when you're setting up devices on your own network — printers, security cameras, smart home devices, or gaming consoles. You also need it if you're troubleshooting network problems with your router or if you want to access your computer remotely from another device on the same network. Your local IP never leaves your home or office network.
Use your public IP if you're troubleshooting internet connectivity issues with your provider, reporting abuse to a website, or checking whether your location appears correct online. Some services also ask for your public IP when you contact technical support. Your public IP is what the rest of the internet sees when you connect.
What to do if your IP address keeps changing
Your local IP can change if your router restarts or if you're using DHCP, which automatically assigns addresses. If you need a device to stay at the same local IP — for example, to access a printer or security camera — you can assign it a static IP through your router settings. Look for "DHCP reservation" or "static IP" in your router's admin panel, usually accessed by typing your router's IP (often 192.168.1.1) into a browser.
Your public IP changes less frequently but will shift when your router restarts or your internet provider updates it. If you need a permanent public IP for remote access or hosting, contact your internet provider about a static public IP — this usually costs extra and requires a business plan rather than a residential one. Most home users don't need a static public IP.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your IP address is a number that changes and identifies your device on a network. Your MAC address is a permanent hardware identifier that never changes. Both appear in your network settings, but they serve different purposes. You need the IP address to connect to the internet; the MAC address is used by your router to recognize your device on the local network.
Can someone find my location from my public IP?
They can find your approximate location — usually your city or region, not your street address. Your internet provider knows your exact address, but websites and other users only see the city-level location tied to your public IP. If you want to hide your public IP, you can use a VPN, which masks it and shows a different one instead.
Why does my local IP start with 192.168 instead of 10?
Both are valid private IP ranges used on home and office networks. Your router chooses which range to use, and most home routers default to 192.168. Some business networks use 10 instead. Either way, these addresses only work on your local network and never reach the internet.
Do I need to change my IP address for security?
Changing your local IP won't improve security — it's only visible to devices on your network. Changing your public IP also won't help much, since websites can't attack you through an IP address alone. Real security comes from keeping your router and devices updated, using strong passwords, and enabling your firewall.