How to find your IP address on Mac, Windows, and Linux
There are two types of IP addresses you might need: your public IP (what the internet sees) and your private IP(your device's address on your local network). The fastest way to find your public IP is to visit heresmyip.com or use curl from the terminal. Below are instructions for finding both on every major platform.
Find your public IP address (any device)
Your public IP is the same regardless of which device you check from (all devices on the same network share one public IP). The quickest methods:
Or simply open heresmyip.com in any browser.
macOS
GUI method
- 1.Open System Settings
- 2.Go to Network (previously under Wi-Fi or Ethernet)
- 3.Click your active connection
- 4.Click Details — your private IP is listed under TCP/IP
Terminal method
Windows
GUI method
- 1.Open Settings > Network & internet
- 2.Click Properties on your active connection
- 3.Scroll down to find IPv4 address
Command Prompt / PowerShell
Linux
Terminal
On older distros, you may need ifconfig instead of ip addr.
iPhone / iPad
- 1.Open Settings > Wi-Fi
- 2.Tap the (i) icon next to your connected network
- 3.Your private IP is listed under IP Address
Android
- 1.Open Settings > Network & internet > Wi-Fi
- 2.Tap your connected network
- 3.Look for IP address in the details
On both iPhone and Android, for your public IP just open heresmyip.com in the browser.
Public vs. private IP — quick reminder
Your public IP is assigned by your ISP and shared by all devices on your network. It is what websites see. Your private IP (like 192.168.x.x or 10.x.x.x) is assigned by your router and only used within your local network. For a deeper explanation, see our guide on IPv4 vs IPv6.