There are two types of IP addresses you might need to find: your public IP (how the internet sees you) and your private/local IP (your address on your local network). Here's how to find both on any device.
In This Article
Find Your Public IP (Easiest Method)
The fastest way to find your public IP address is to visit WhatIP.ca. Your public IP is displayed instantly along with location, ISP, and other details.
Quick Tip
Your public IP is assigned by your ISP and shared by all devices on your home network. Your private IP is unique to each device within your local network.
Windows
Private IP via Settings
- Click Start → Settings → Network & Internet
- Click Wi-Fi or Ethernet (depending on your connection)
- Click Hardware properties
- Find IPv4 address
Private IP via Command Prompt
ipconfig
# Look for:
# IPv4 Address. . . . . . . . . . . : 192.168.1.5
# Default Gateway . . . . . . . . . : 192.168.1.1 (your router)
Public IP via Command Line
curl ifconfig.me
# or
nslookup myip.opendns.com resolver1.opendns.com
macOS
Private IP via System Settings
- Click Apple menu → System Settings
- Click Network
- Select your connection (Wi-Fi or Ethernet)
- Click Details
- Your IP is shown under IP address
Private IP via Terminal
# Wi-Fi
ipconfig getifaddr en0
# Ethernet
ipconfig getifaddr en1
# All interfaces
ifconfig | grep "inet "
Public IP via Terminal
curl ifconfig.me
# or
curl whatip.ca/api/ip
Linux
Private IP
# Modern method
ip addr show
# or
ip a
# Look for "inet" under your interface (eth0, enp0s3, wlan0, etc.)
# Older method
ifconfig
# Quick one-liner
hostname -I
Public IP
curl ifconfig.me
curl icanhazip.com
curl whatip.ca/api/ip
dig +short myip.opendns.com @resolver1.opendns.com
iPhone & Android
iPhone (Private IP)
- Open Settings
- Tap Wi-Fi
- Tap the ⓘ next to your connected network
- Find IP Address
Android (Private IP)
- Open Settings
- Tap Network & Internet (or Connections)
- Tap Wi-Fi
- Tap your connected network
- Find IP address
Public IP on Mobile
Simply visit WhatIP.ca in your mobile browser to see your public IP.
Find Your Router's IP
Your router's IP (default gateway) is needed to access its admin panel.
Common Router IPs
| Brand | Common Default IP |
|---|---|
| Most routers | 192.168.1.1 |
| Linksys | 192.168.1.1 |
| Netgear | 192.168.0.1 or 192.168.1.1 |
| D-Link | 192.168.0.1 |
| ASUS | 192.168.1.1 |
| TP-Link | 192.168.0.1 |
| Google/Nest | 192.168.86.1 |
Find Router IP via Command
Windows:
ipconfig
# Look for "Default Gateway"
macOS:
netstat -nr | grep default
Linux:
ip route | grep default