How to find your local IP address

Your local IP address is the private address your router hands to a single device inside your home or office network. It's what lets your router tell your laptop apart from your phone, printer, or smart TV. This is different from your public IP address, which is the one the outside internet sees and which every device on your network shares. If you're unsure which is which, our guide on public vs private IP explains it, and the home page shows your public IP instantly.

Local addresses almost always fall in a small set of private ranges. Most home networks use something starting with 192.168.x.x or 10.x.x.x; you can see all of them in our list of private IP ranges. (The address 127.0.0.1 is a special case that always refers to the device itself — see what is localhost.) Here's how to find yours on every major platform.

Windows

The fastest method is the command line. Press the Windows key, type cmd, and open Command Prompt. Then:

  1. Type ipconfig and press Enter.
  2. Find your active adapter (usually "Wireless LAN adapter Wi-Fi" or "Ethernet adapter").
  3. Read the IPv4 Address line — that is your local IP.
  4. The Default Gateway line on the same adapter is your router's IP.

Prefer a graphical view? Open Settings > Network & Internet, click your Wi-Fi or Ethernet connection, and the IPv4 address and gateway are listed under the connection's properties.

macOS

Open System Settings > Network, choose your active connection (Wi-Fi or Ethernet), and click Details. The TCP/IP tab shows your IP address and the router address.

From Terminal, the quickest one-liner is ipconfig getifaddr en0 for Wi-Fi (use en1 if that returns nothing). For a full picture of every interface, run ifconfig and look for the inet value under your active adapter.

Linux

Open a terminal and run ip addr. Look for your active interface (often wlan0 or eth0) and read the address after inet. For a stripped-down answer, hostname -I prints just your IP address (or addresses) with no extra detail. To find your router, run ip route and read the address after default via.

iPhone and iPad

Open Settings > Wi-Fi, tap the small (i) icon next to your connected network, and scroll to the IPV4 ADDRESS section. Your device's local IP is on the IP Address line, and your Router address is listed just below it.

Android

Steps vary slightly by manufacturer, but the usual path is Settings > Wi-Fi, tap your connected network (or its gear icon), then open Advanced to see the IP address. Alternatively, go to Settings > About phone > Status, where the device IP address is listed. Some versions show it under network details as "Gateway" for the router.

Finding your router's IP (the default gateway)

Your router's address is the default gateway — the door every device uses to reach the internet. On most home setups it's 192.168.0.1 or 192.168.1.1, though some routers use 10.0.0.1. As shown above, you can read it from ipconfig (Windows), the Network details pane (macOS), ip route (Linux), or the Router line in your phone's Wi-Fi settings. Typing that address into a browser usually opens your router's admin login.

Local IP vs public IP

Remember that none of these methods show your public IP. A local address like 192.168.1.42 is only meaningful inside your own network and is reused on millions of other networks worldwide. When a website, game server, or support technician asks for "your IP," they usually mean the public one — check it here. If you need to swap either address for a fresh one, see how to change your IP address.

→ Check your IP address  ·  More guides