Your IP address is a number your device uses to connect to the internet and local networks
Every device connected to a network has an IP address — a unique identifier that lets other devices send data to it. You have two types: a local IP address that identifies your device on your home or office network, and a public IP address that identifies you to the wider internet. Knowing how to find both takes less than a minute and requires no special tools beyond what your operating system already has.
The method you use depends on whether you need your local address (for connecting to a printer or security camera on your network) or your public address (for remote access or troubleshooting internet issues). Both are visible through built-in system tools on Windows, Mac, and Linux.
Key Takeaways
- Your local IP address appears in your network settings and typically starts with 192.168 or 10.0 on most home networks.
- Your public IP address is what websites and services see when you connect to them, and you can find it by visiting a website like whatismyipaddress.com.
- Windows users can open Command Prompt and type ipconfig to see their local IP in seconds.
- Mac and Linux users can open Terminal and type ifconfig or ip addr to view the same information.
- Your local IP address may change if your router restarts, but your public IP typically stays the same unless your internet provider assigns a new one.
Finding your local IP address on Windows
Open Command Prompt by pressing the Windows key, typing "cmd", and pressing Enter. Type ipconfig and press Enter. Look for the line labeled "IPv4 Address" under your active network connection — this is your local IP address. It usually appears as four numbers separated by periods, like 192.168.1.100.
If you prefer a graphical method, go to Settings, select Network & Internet, then choose your connection type (Wi-Fi or Ethernet). Your local IP appears under "Properties" as "IPv4 address". Both methods show the same information; Command Prompt is faster if you need to check it repeatedly.
Finding your local IP address on Mac
Open System Preferences and click Network. Select your active connection (usually Wi-Fi or Ethernet) from the left sidebar. Your local IP address appears in the main panel next to "IP Address". On newer Macs running System Preferences as System Settings, the layout is the same but the menu structure may differ slightly depending on your macOS version.
Alternatively, open Terminal (found in Applications > Utilities) and type ifconfig, then press Enter. Look for the line starting with "inet" under your active connection — this is your local IP. The Terminal method is useful if you need to check the address on multiple devices or want to see additional network details at once.
Finding your local IP address on Linux
Open a terminal window and type ip addr, then press Enter. Your local IP address appears next to "inet" for each network interface. On some older Linux systems, ifconfig works instead, though most modern distributions use ip addr. Look for the interface you're actively using — usually eth0 for wired connections or wlan0 for Wi-Fi.
If you're using a graphical desktop environment like GNOME or KDE, you can also access network settings through the system menu, typically in the top-right corner. Click the network icon and select connection details to see your local IP without opening a terminal.
Finding your public IP address
Your public IP address is what the internet sees when you connect to websites and services. To find it, open any web browser and visit a site like whatismyipaddress.com, myip.com, or iplocation.net. Your public IP appears immediately on the page — no login or download required. These sites work on Windows, Mac, Linux, and mobile devices.
You can also find your public IP through your router's settings page. Open a browser, type your router's IP address (usually 192.168.1.1 or 192.168.0.1) into the address bar, and log in with your router's admin credentials. Look for a section labeled "WAN IP", "Internet", or "Status" — your public IP is listed there. This method also shows your router's local IP address and other network details.
Understanding the difference between local and public IP addresses
Your local IP address is used only within your home or office network. Devices on the same network use it to communicate with each other — for example, to send a print job to your printer or stream video from a security camera. This address is private and invisible to the internet. Your router assigns it automatically using DHCP, and it may change if your device disconnects and reconnects to the network.
Your public IP address is assigned by your internet service provider and identifies your entire network to the outside world. Websites, email servers, and online services see this address when you connect to them. It typically remains the same for weeks or months, but your ISP can assign you a new one at any time. If you need a permanent public IP for remote access or hosting, you can contact your ISP about a static IP option, though this usually costs extra.
Why you might need to check your IP address
You may need your local IP to connect to devices on your network, such as setting up a printer, accessing a security camera's web interface, or troubleshooting network problems. Network administrators check local IPs to manage devices and diagnose connectivity issues. If a device isn't connecting, knowing its IP helps you determine whether it's on the network at all.
You might need your public IP for remote access to your home computer, setting up port forwarding on your router, or troubleshooting why a website is blocking you. Some services also ask for your public IP when you report a problem or request technical support. Knowing both addresses helps you understand how your network is configured and makes it easier to solve connection problems when they occur.
Frequently Asked Questions
Will my IP address change if I restart my router?
Your local IP address may change after a restart, though many routers reassign the same address to the same device. Your public IP typically stays the same unless your internet service provider reassigns it, which can happen but is uncommon. If you need a stable local IP for a device like a printer, you can set a static IP in your router's settings.
Is my public IP address the same on all devices in my home?
Yes. All devices in your home share the same public IP address because they all connect to the internet through the same router. However, each device has its own unique local IP address on your home network. Your router uses these local addresses to direct traffic to the correct device.
Can someone find my location from my IP address?
Your public IP can reveal your approximate location — usually your city or region, not your exact address. Websites and services can see this information. If you want to hide your location or public IP, you can use a VPN service, though this may affect your internet speed and some websites may block VPN connections.
What if ipconfig or ifconfig doesn't show my IP address?
Make sure your device is actually connected to the network — check that Wi-Fi is enabled or your ethernet cable is plugged in. If you're connected but still don't see an IP, your device may not have received one from the router. Try disconnecting and reconnecting to the network, or restart your device and router.