Free network tool

How to find your IP address

Find your local IP on Windows, Mac, iPhone, Android, Linux, your printer, or your console — with a clear explanation of public vs local IP, the distinction most guides skip.

Looking for your IP to set up a printer, console, or local device? Most people who search this need their local IP, not the public one. Pick your device for exact steps.

How to find your IP address on any device

First, which IP do you need? The address at the top of this page is your public IP — what websites and the wider internet see. If you’re connecting a printer, console, or another device on your own network, you need your local IP instead — it starts with 192.168, 10., or 172.16. Pick your device below to find the local one.

  1. Press Windows key + R, type cmd and press Enter.
  2. Type ipconfig and press Enter.
  3. Find the IPv4 Address line under your active adapter — that’s your local IP (it starts with 192.168, 10., or 172.16).
ipconfig
  1. Open System Settings → Network.
  2. Select your active connection (Wi-Fi or Ethernet) and click Details.
  3. Your local IP is shown under the TCP/IP tab as IP address.

Prefer the terminal? Run the command below and read the inet line for your active interface.

ipconfig getifaddr en0
  1. Open Settings → Wi-Fi.
  2. Tap the (info) icon next to your connected network.
  3. Your local IP is listed under IPV4 ADDRESS → IP Address.

This shows your local IP on the Wi-Fi network. On mobile data your device doesn’t expose a useful local IP — the public IP at the top of this page is what applies there.

  1. Open Settings → Network & internet → Wi-Fi (wording varies by phone).
  2. Tap your connected network, or the gear/ⓘ icon beside it.
  3. Look for IP address in the details — it starts with 192.168, 10., or 172.16.

Menu names differ between Samsung, Pixel, Xiaomi and others, but the path is always Wi-Fi → your network → details.

Run either command in a terminal and read the inet address for your active interface (e.g. eth0 or wlan0):

ip addr show
# or the older:
hostname -I

A printer’s IP comes from the printer itself, not a command on your computer. The exact menu varies by model, but two reliable methods:

  1. From the printer’s display: look under Settings → Network (or Wireless / Wi-Fi status). The IPv4 address is shown there.
  2. No screen? Print a Network Configuration or Wi-Fi setup page from the printer’s menu — the IP is printed on it.

On HP, look under Wireless or Network settings; on Epson, under Network Status; on Canon, under LAN/Network settings. Menu wording differs by model, so treat these as a starting point.

Game consoles show their local IP in the network settings:

  1. PlayStation 5: Settings → Network → Connection Status → View Connection Status — the IP Address is listed.
  2. Xbox Series X|S: Settings → General → Network settings → Advanced settings — the IP address is shown there.

This is the local IP you’d use for port forwarding or fixing a strict NAT type. See our console local vs public IP guide.

Public IP vs local IP — the difference that trips everyone up

Your public IP is the single address your whole network shows to the internet — it’s shown at the top of our homepage. Your local IP is the private address your router assigns to each device on your network, so they can talk to each other. Local IPs start with 192.168, 10., or 172.16–31. When you connect a printer or set up file sharing, it’s the local IP you need.

Why your phone and laptop have different local IPs

Every device on your network gets its own local IP from the router’s DHCP service, but they all share the same public IP when reaching the internet. That’s why your printer’s 192.168.x.x address is different from your laptop’s, even though a website sees both as the same public address. For more, see local vs public IP on consoles.

Related: Console local vs public IP · What private IP ranges mean · IP address FAQ

0 IPs logged or stored
2 stacks shown (v4 & v6)
8+ diagnostic tools
lookups, always free