showmyip.dev

How to find your IP address

You have two kinds of IP address, and which one you need depends on why you're looking:

  • Your public IP address is the one websites, games and other people on the internet see. Your whole home network shares it. You need it to set up remote access, to allow your connection through someone's firewall, or to check that a VPN works.
  • Your private IP address identifies your device inside your home or office network, like 192.168.1.23. You need it for port forwarding, for connecting to a printer or another computer on the network, or when a device's settings ask for it.

What's the difference between public and private IP addresses?


Find your public IP address

The quickest way: open the showmyip.dev home page. It shows your public IPv4 and IPv6 addresses, with your internet provider and approximate location. Your device's settings can't show the public address, because it belongs to your router's connection, not to the device.

From a terminal, on any system:

curl -L showmyip.dev

In Windows PowerShell, irm showmyip.dev does the same. If your connection has IPv6, you get that address; curl -L ipv4.showmyip.dev always gives your IPv4 address. More commands are in the API docs.

If you use a VPN, these show the VPN server's address, which is what websites see while it's on.


Find your private IP address

Windows 11 and 10

  1. Open Settings › Network & internet.
  2. Select Wi-Fi or Ethernet, then your network's properties (on Windows 11, Hardware properties).
  3. Your address is next to IPv4 address.

Or open Command Prompt or PowerShell and run ipconfig. Look for IPv4 Address under the adapter you're connected with.

Mac

  1. Open System Settings › Wi-Fi (or Network for a cable connection).
  2. Click Details… next to the network you're connected to.
  3. Select TCP/IP. Your address is next to IP address.

Or open Terminal and run ipconfig getifaddr en0 (Wi-Fi on most Macs).

iPhone and iPad

  1. Open Settings › Wi-Fi.
  2. Tap the ⓘ next to the network you're connected to.
  3. Your address is next to IP Address.

Android

  1. Open Settings › Network & internet › Internet (on Samsung phones, Connections › Wi-Fi).
  2. Tap the gear next to the network you're connected to.
  3. Your address is under IP address; on some phones, tap Advanced or View more first.

Menu names differ a little between phone makers and Android versions.

Linux

Run hostname -I for your addresses, or ip addr for the details of each network interface.

Chromebook

Open Settings › Network, select your network, and look under Network for the IP address.


Find your router's IP address

Your router's address, called the default gateway or router, is where you open its settings page. Most routers use 192.168.1.1, 192.168.0.1 or 10.0.0.1, but yours may differ:

  • Windows: run ipconfig and look for Default Gateway.
  • Mac: System Settings › Wi-Fi › Details… › TCP/IP, next to Router. In Terminal: route -n get default.
  • iPhone and iPad: Settings › Wi-Fi › ⓘ, next to Router.
  • Android: in your network's details (the same screen as your IP address), under Gateway or Router. Not every phone shows it.
  • Linux: run ip route and look at the line starting with default via.

Type the address into your browser's address bar to open the router's admin page.


Find the IP address of another device

Your router knows the private address of everything connected to it. Open its admin page and look for a list called Connected devices, Attached devices, DHCP clients or similar. Printers and smart TVs also show their address in their own network settings menu.

To look up any public address, such as one from a server log, use the search on the home page or the bulk IP lookup for a list.


Why does my IP address keep changing?

Most internet providers give home connections a dynamic public IP address, which can change when your router restarts or after a set time. Private addresses are handed out by your router the same way, so a device can get a different one after reconnecting. If you need an address that stays the same, ask your provider for a static public IP, or reserve a private address for the device in your router's settings. More on changing your IP address.

Last updated