How to Find Your IP Address
Find your public IP in one click or one command, then your local IPv4 on Windows, macOS, Linux, Android and iPhone, plus your router's gateway address.
Your public IP: the quick way
Your public IP is the address websites see. Your ISP assigns it and every device in your home shares it. Three ways to get it:
- Our page: What Is My IP shows it the moment it loads.
- Google: search for
what is my ip. It is at the top of the results. - Terminal:
curl ipwhois.net/ip.
Most ISPs assign it dynamically (DHCP), so it can change after a reboot. If you need one that stays put, ask your ISP for a static IP.
Local IP on Windows
Your local (private) IP is the one your router gave your device. Websites never see it.
Command Prompt
- Press
Win + R, typecmd, press Enter. - Run
ipconfig. - Read IPv4 Address under your Wi-Fi or Ethernet adapter.
Settings
- Open Settings → Network & Internet.
- Click your active connection.
- Scroll to the IPv4 address.
Expect something like 192.168.1.105 or 10.0.0.15.
Local IP on macOS
System Preferences
- Open System Preferences → Network.
- Pick Wi-Fi or Ethernet in the sidebar. The IP is on the right.
Terminal
- Open Terminal (Applications → Utilities → Terminal).
- Run
ifconfig en0for Wi-Fi orifconfig en1for Ethernet. Theinetline is your IPv4 address.
Local IP on Linux
| Command | What it does |
|---|---|
ip addr show | The modern command. Look for inet under your interface (eth0, wlan0) |
hostname -I | Prints every assigned IP on one line |
ifconfig | The old command. May need the net-tools package |
nmcli device show | Full NetworkManager details, IP included |
On Wi-Fi, ip addr show wlan0 prints a line like inet 192.168.1.42/24.
Local IP on Android and iPhone
Android
- Open Settings → Wi-Fi.
- Tap the network you are on. The IP is in the network details.
iPhone / iPad
- Open Settings → Wi-Fi.
- Tap the (i) next to your network. Look under IPv4 Address.
Your router's IP (default gateway)
You need this one to open the router's admin page. It is usually 192.168.1.1, 192.168.0.1 or 10.0.0.1.
- Windows:
ipconfig, read Default Gateway. - macOS:
netstat -nr | grep default. - Linux:
ip route | grep default.
Two addresses, two jobs. The public IP identifies your whole network on the internet. The private IP identifies one device inside it. When a website or a support person asks for "your IP", they mean the public one.
Try it on a real address. Free, no account needed.