How to Find Your IP Address
Finding Your Public IP Address
Your public IP address is the address that websites and online services see when you connect. It is assigned by your ISP and represents your entire home or office network to the outside world.
The easiest ways to find your public IP:
- Use our tool: Visit our What Is My IP page - your public IP is displayed instantly.
- Google it: Type
what is my ipinto Google and it will show your public IP at the top of the results. - Command line: Run
curl ipwhois.net/ipin your terminal to get your public IP instantly.
Finding Your Local IP on Windows
Your local (private) IP is the address assigned to your device within your home or office network. To find it on Windows:
Method 1: Command Prompt
- Press
Win + R, typecmd, and press Enter. - Type
ipconfigand press Enter. - Look for IPv4 Address under your active network adapter (Wi-Fi or Ethernet).
Method 2: Settings
- Open Settings → Network & Internet.
- Click on your active connection (Wi-Fi or Ethernet).
- Scroll down to find your IPv4 address.
You will typically see an address like 192.168.1.105 or 10.0.0.15.
Finding Your Local IP on macOS
On a Mac, you can find your local IP using either the GUI or the Terminal:
Method 1: System Preferences
- Open System Preferences → Network.
- Select your active connection (Wi-Fi or Ethernet) from the left sidebar.
- Your IP address is displayed on the right panel.
Method 2: Terminal
- Open Terminal (Applications → Utilities → Terminal).
- Type
ifconfig en0for Wi-Fi orifconfig en1for Ethernet. - Look for the
inetline - that is your IPv4 address.
Finding Your Local IP on Linux
Linux provides several command-line methods:
| Command | Description |
|---|---|
ip addr show | Modern command - look for inet under your interface (e.g., eth0, wlan0) |
hostname -I | Quick one-liner that prints all assigned IP addresses |
ifconfig | Legacy command (may need net-tools package installed) |
nmcli device show | Shows detailed NetworkManager info including IP |
For example, running ip addr show wlan0 on a Wi-Fi connection might output something containing inet 192.168.1.42/24.
Finding Your IP on Mobile Devices
Android
- Go to Settings → Wi-Fi.
- Tap your connected network name.
- Your IP address will be displayed in the network details.
iPhone / iPad
- Open Settings → Wi-Fi.
- Tap the (i) icon next to your connected network.
- Your IP address is listed under the IPv4 Address section.
Finding Your Router's IP Address
Your router's IP (default gateway) is needed to access its admin panel. To find it:
- Windows: Run
ipconfigand look for Default Gateway. - macOS: Run
netstat -nr | grep defaultin Terminal. - Linux: Run
ip route | grep default.
Common router IPs include 192.168.1.1, 192.168.0.1, and 10.0.0.1.