forgotmyip.com
Home / Guides

How to find your IP address

Windows, Mac, Linux, iPhone and Android, with official docs.

Published

There are two addresses you might want. Your public IP is what websites see; your local (private) IP is your device's address on your home network. Not sure which? See Public vs private IP.

Find your public IP address

On any device, open forgotmyip.com — it shows your public IPv4 and IPv6 with a copy button. From a terminal:

curl https://forgotmyip.com

More options: Get your IP from the command line.

Windows 10 and 11

Using Settings

From Microsoft's instructions (Microsoft Support):

  1. Open Start → Settings → Network & internet.
  2. Select Wi‑Fi and then the network you're connected to, or select Ethernet.
  3. Your address is listed next to IPv4 address.

Using Command Prompt

ipconfig

Without parameters, ipconfig displays the IPv4 and IPv6 addresses, subnet mask and default gateway for every adapter (Microsoft Learn). The Default Gateway is your router.

Using PowerShell

Get-NetIPAddress -AddressFamily IPv4

Get-NetIPAddress lists the computer's IP address configuration; -AddressFamily accepts IPv4 or IPv6.

macOS

Apple documents this route (Apple Support):

  1. Choose Apple menu → System Settings → General → Sharing.
  2. Click the Info button next to a sharing service that's turned on.
  3. The window shows your Mac's network address (for example vnc://10.212.167.33 for Screen Sharing).

Your network's TCP/IP settings are under System Settings → Network → (your connection) → Details → TCP/IP (Apple Support).

Linux

ip address show          # addresses of every interface: "inet" = IPv4, "inet6" = IPv6
ip route show default    # your default gateway (router)

See the ip-address(8) and ip-route(8) manual pages.

iPhone and iPad

Open Settings → Wi‑Fi and tap the Info button next to the connected network to see and change its settings (Apple Support).

Android

On many Android phones: Settings → Network & internet → Internet, then tap the connected network to see its settings (Android Help). Menu names differ between manufacturers and Android versions.

Find your router's IP address

Your router's address is the default gateway:

System How
Windows ipconfig → Default Gateway (Microsoft Learn)
Linux ip route show default (ip-route(8))

Typing that address into a browser usually opens the router's admin page.

Sources

  1. Microsoft Support — Essential network settings and tasks in Windows
  2. Microsoft Learn — ipconfig
  3. Microsoft Learn — Get-NetIPAddress
  4. Apple Support — Find your computer's name and network address on Mac
  5. Apple Support — Use DHCP or a manual IP address on Mac
  6. Linux man page — ip-address(8)
  7. Linux man page — ip-route(8)
  8. Apple Support — Manage Wi‑Fi settings on iPhone
  9. Android Help — Connect to Wi‑Fi networks on your Android device

Forgot your IP? See your IPv4 and IPv6 now.

Show my IP