Skip to content

Guide

How to find your local IP address

Your device has two IP addresses: a public one the internet sees, and a local one inside your network. Here's how to find the local one.

Your local IP address (also called a private or internal IP address) identifies your device on your home or office network, for example 192.168.1.23. You need it to set up port forwarding, share files or printers, connect to a game server on your network, or troubleshoot your Wi-Fi.

It is not the same as the address websites see. For that, see your public IP address on the IPLookr homepage.

Windows 11 and Windows 10

  1. Open Settings and go to Network & internet.
  2. Select Wi-Fi or Ethernet, then the network you are connected to (on Windows 10: Properties).
  3. Look for IPv4 address.

Faster: press Windows + R, type cmd and press Enter, then run ipconfig. Your address is next to IPv4 Address.

macOS

  1. Open System Settings and choose Wi-Fi (or Network for a cable connection).
  2. Click Details next to the network you are connected to.
  3. Open the TCP/IP tab and look for IP address.

In Terminal, ipconfig getifaddr en0 shows the Wi-Fi address on most Macs (try en1 if it prints nothing).

iPhone and iPad

  1. Open Settings and tap Wi-Fi.
  2. Tap the ⓘ button next to the network you are connected to.
  3. Look for IP Address in the IPv4 section.

Android

  1. Open Settings and go to Network & internet (on Samsung: Connections).
  2. Tap Wi-Fi, then the gear icon or the name of the network you are connected to.
  3. Look for IP address. On some phones it is under Advanced or View more.

Menu names vary a little between phone makers, but the address is always in the details of your Wi-Fi network.

Linux

Open a terminal and run hostname -I for a quick list, or ip addr show for details. Your address is on the inet line of your active network interface, such as wlan0 or eth0. In most desktop environments you can also find it in the network settings.

ChromeOS

  1. Open Settings and choose Network.
  2. Select your Wi-Fi network, then open its details.
  3. Look for IP address.

How to find your router's IP address

Your router has a local address too, usually 192.168.0.1, 192.168.1.1 or 10.0.0.1. It is listed as the default gateway or router:

  • Windows: run ipconfig and look for Default Gateway.
  • macOS: System Settings › Wi-Fi › Details › TCP/IP, then look for Router.
  • iPhone: Settings › Wi-Fi › ⓘ, then look for Router.
  • Linux: run ip route and look at the line starting with default via.

Type that address into your browser to open your router's settings page.

Why local IP addresses change

Your router hands out local addresses automatically using DHCP, and a device may get a different one after a restart. If you need a device, such as a printer or game console, to keep the same address, set up a DHCP reservation (sometimes called a static lease) in your router's settings.

Frequently asked questions

Is my local IP address the same as my public IP address?

No. Your local IP address identifies your device inside your own network, while your public IP address is what the internet sees. All devices on a home network usually share one public IP address but each has its own local one.

Why does my local IP address start with 192.168?

192.168.0.0 to 192.168.255.255 is one of the ranges reserved for private networks, and most home routers use it by default. Others use 10.x.x.x or 172.16.x.x to 172.31.x.x. None of these addresses are used on the public internet.

Can two devices have the same local IP address?

Not on the same network; your router makes sure each device gets its own. Devices on different networks can, and do, use the same local addresses, which is why private addresses can be reused in millions of homes.

Why can't a website show my local IP address?

Your router replaces your local address with your public one before traffic reaches the internet, and modern browsers deliberately hide local addresses from web pages to protect your privacy. You have to look it up on the device itself.