Find Your IP Address & Check Network Connection
This guide shows you how to find your IP address (both local and public) and how to check whether your network connection is working properly. You’ll learn quick methods for Windows, macOS, Android, iOS, and via your router, plus how to diagnose common connection problems. No special tools are needed—just your device and a few minutes.
What You’ll Need
- Your computer, phone, or tablet
- Access to your device’s settings or command prompt (built-in)
- An internet connection (for checking the public IP; if offline, you can still find local IPs)
Step-by-Step
- Find your local IP address on Windows 10/11: Open the Start menu, type cmd and press Enter. In the Command Prompt, type
ipconfigand press Enter. Look for the line under your active adapter (Wi-Fi or Ethernet) that says IPv4 Address. That’s your local IP (e.g., 192.168.1.5). - Find your local IP on macOS: Go to System Settings > Network. Select your active connection (Wi-Fi or Ethernet) and click Details. Your IP address is shown under the TCP/IP tab.
- Find your local IP on Android: Open Settings > Wi-Fi. Tap the gear icon next to your connected network. The IP address is listed under IP address (may be under Advanced).
- Find your local IP on iPhone/iPad: Go to Settings > Wi-Fi. Tap the blue i next to your connected network. Your IP address appears under IP Address.
- Find your public IP address: Open a web browser on any device and visit a site like whatismyip.com or simply search “what is my IP” on Google. The first result shows your public IPv4 address (and often IPv6). This is the address the internet sees.
- Check network connection via ping (Windows/macOS): Open Command Prompt (Windows) or Terminal (macOS). Type
ping 8.8.8.8and press Enter. If you get replies with times in milliseconds, your connection to the internet is working. If you get “Request timed out” or “Destination Host Unreachable,” there’s a problem. - Check network connection via ping to a domain: Type
ping google.com. If this fails but the IP ping works, you may have a DNS issue. - Check your router’s status page: Open a browser and enter your router’s IP (often 192.168.1.1 or 192.168.0.1). Log in (default credentials are often on the router label). Look for a “Status” or “Internet” section—it should show if the WAN connection is up and what the public IP is.
- Use a built-in network diagnostic: On Windows, go to Settings > Network & Internet > Status and click Network troubleshooter. On macOS, go to System Settings > Network and click Diagnostics (if available).
Common Mistakes
- Confusing local and public IP: Your local IP is private (like 192.168.x.x) and only used within your home network. Your public IP is assigned by your ISP and is what websites see.
- Looking at the wrong adapter: If you’re on Wi-Fi, don’t look at the Ethernet adapter’s IP in ipconfig. Check the one that shows your active connection.
- Using a VPN: If you have a VPN active, the public IP you see may be from the VPN server, not your actual location.
- Pinging when offline: If you have no internet, pinging an external IP will fail, but that doesn’t mean your local network is broken.
Tips
- Your local IP can change over time due to DHCP. If you need a static one, set it in your router’s DHCP reservation or device settings.
- To see all network details at once on Windows, use
ipconfig /allto get DNS servers, MAC address, and more. - On macOS, you can also use
ipconfig getifaddr en0for Wi-Fi oren1for Ethernet in Terminal. - If you need to know your IP for port forwarding, always use your local IP, not the public one.
- For a quick connectivity test, use
ping 1.1.1.1(Cloudflare) orping 8.8.8.8(Google) as they are reliable and easy to remember.
Troubleshooting
If ping to 8.8.8.8 fails:
- Check if Wi-Fi is turned on and connected to a network. Look for the Wi-Fi icon in the taskbar or menu bar.
- Restart your router and modem. Unplug them for 30 seconds, then plug back in. Wait for lights to stabilize.
- Try connecting with an Ethernet cable instead of Wi-Fi to rule out wireless issues.
- Check if other devices on the same network have internet. If they do, the problem is with your device’s settings.
- Release and renew your IP: In Command Prompt (admin) type
ipconfig /releasethenipconfig /renew. On macOS, turn Wi-Fi off and on.
If ping to google.com fails but 8.8.8.8 works:
- This indicates a DNS problem. Try changing your DNS server to a public one like 8.8.8.8 or 1.1.1.1 in your router or device settings.
- Flush DNS cache: On Windows, type
ipconfig /flushdns. On macOS, typesudo dscacheutil -flushcache.
If you can’t find the IP in settings:
- Make sure you’re connected to a network—if you’re not, there may be no IP assigned.
- On some Android phones, the IP address is under Advanced in Wi-Fi settings.
- If all else fails, restart your device; this often resolves temporary network glitches.
Frequently Asked Questions
Q: What’s the difference between IPv4 and IPv6?
A: IPv4 is the older, most common format (like 192.168.1.1). IPv6 is newer and uses longer addresses (like 2001:db8::1) to provide more addresses. Most networks use both.
Q: Why does my public IP change?
A: Most ISPs assign dynamic IPs that can change periodically. If you need a fixed one, you may need to request a static IP from your ISP.
Q: Can I hide my IP address?
A: Yes, using a VPN or the Tor browser can mask your public IP from websites. However, your ISP can still see your traffic unless you use additional privacy tools.
Q: How do I find my IP on a Chromebook?
A: Click the clock area, select the Wi-Fi icon, then the gear icon. Your IP is shown under the network details.
Q: What is 127.0.0.1?
A: It’s the loopback address, always referring to your own device. Pinging it tests your network stack without sending traffic to the network.
Q: Why does my local IP start with 192.168?
A: That’s a private IP range reserved for local networks. Other common ranges are 10.x.x.x and 172.16.x.x to 172.31.x.x.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.