Copied!

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

  1. Press Win + R, type cmd, press Enter.
  2. Run ipconfig.
  3. Read IPv4 Address under your Wi-Fi or Ethernet adapter.

Settings

  1. Open Settings → Network & Internet.
  2. Click your active connection.
  3. Scroll to the IPv4 address.

Expect something like 192.168.1.105 or 10.0.0.15.

Local IP on macOS

System Preferences

  1. Open System Preferences → Network.
  2. Pick Wi-Fi or Ethernet in the sidebar. The IP is on the right.

Terminal

  1. Open Terminal (Applications → Utilities → Terminal).
  2. Run ifconfig en0 for Wi-Fi or ifconfig en1 for Ethernet. The inet line is your IPv4 address.

Local IP on Linux

CommandWhat it does
ip addr showThe modern command. Look for inet under your interface (eth0, wlan0)
hostname -IPrints every assigned IP on one line
ifconfigThe old command. May need the net-tools package
nmcli device showFull 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

  1. Open Settings → Wi-Fi.
  2. Tap the network you are on. The IP is in the network details.

iPhone / iPad

  1. Open Settings → Wi-Fi.
  2. 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.
What Is My IP?
Try it on a real address. Free, no account needed.