How to Find Your IP Address on Any Device

Public IP address: just open the What's My IP Number page, or run curl https://toolsforanyone.com/ip if you're in a terminal. Private (local) IP: dig into your device's network settings, or run ipconfig on Windows, ipconfig getifaddr en0 on a Mac. Every common device gets its own step-by-step below.

First: which IP address do you need?

Every device on your home network is actually juggling two different addresses:

  • Public IP address. This is what the rest of the internet sees — handed to your router by your ISP, and shared by every single device sitting behind it. Need it for remote access, a server allowlist, or an ISP support call? This is the one.
  • Private (local) IP address. Whatever your router hands out to each device individually, usually starting 192.168., 10. or somewhere in 172.16.–172.31.. Port forwarding, setting up a printer, getting two devices talking to each other at home — that's all this one.

Here's the catch: your device's own settings will only ever show you the private address. The public one is only visible from outside your network, by definition. Still fuzzy on the difference? Public vs Private IP Addresses Explained goes deeper.

Tip: Menus below match current versions — Windows 11, macOS Sonoma and Sequoia, iOS 17+, Android 14+, current ChromeOS. Expect slightly different wording on other versions, languages or phone brands.

How to find your public IP address

In a browser

Just open the What's My IP Number page. You'll get your public IPv4, your IPv6 if you have one, your ISP, and a rough location — same result on any device. On a VPN? You'll see the VPN server's address instead of your own, which is exactly the point.

The page itself is translated into 11 languages. If you'd rather read it in Spanish, German, Turkish, Chinese or Arabic, the language menu at the top handles that — the Arabic version, ما هو عنوان IP الخاص بي؟, even reads right to left. The address itself, of course, stays exactly the same no matter which language you read it in.

From the command line

There's also a plain-text endpoint that hands back nothing but your IP — genuinely useful in scripts, or on a server with no browser anywhere near it:

curl https://toolsforanyone.com/ip

This works in Terminal on macOS and Linux. On Windows 10 and 11, curl is included, but in Windows PowerShell the name curl may be an alias for a different command, so type curl.exe to be safe, or use PowerShell's own cmdlet:

curl.exe https://toolsforanyone.com/ip
Invoke-RestMethod https://toolsforanyone.com/ip

To save the result in a shell variable on macOS or Linux:

MYIP=$(curl -s https://toolsforanyone.com/ip)
echo "$MYIP"

Windows 11

Using Settings

  1. Open Settings (press Windows + I).
  2. Select Network & internet.
  3. Select Wi-Fi or Ethernet, depending on how you are connected, then select your network's properties (for Wi-Fi, click the connected network name or "<network> properties").
  4. Scroll down to find IPv4 address. IPv6 addresses, DNS servers and the MAC address are listed in the same section.

Alternatively, go to Settings > Network & internet > Advanced network settings > Hardware and connection properties to see every adapter at once.

Using ipconfig

  1. Press Windows + R, type cmd and press Enter (or open Windows Terminal).
  2. Run ipconfig.
  3. Find the section for your active adapter, such as "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet", and read the IPv4 Address line.
Wireless LAN adapter Wi-Fi:
   IPv4 Address. . . . . . . . . . . : 192.168.1.23
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

The Default Gateway is your router's address. Run ipconfig /all for more detail, including DHCP lease times and DNS servers.

macOS

Using System Settings

  1. Open the Apple menu and choose System Settings.
  2. Click Network in the sidebar, then Wi-Fi or your Ethernet connection.
  3. Click Details… next to the connected network.
  4. Select the TCP/IP tab. Your IP address and Router address are shown there.

Using Terminal

ipconfig getifaddr en0

en0 is usually Wi-Fi on MacBooks. On Macs with built-in Ethernet, en0 may be the Ethernet port and Wi-Fi may be en1, so try both if you get no output. To find your router's address, run route -n get default and look for the gateway line.

Linux

Using the terminal

hostname -I
ip addr

hostname -I prints all addresses on one line. ip addr (short for ip address show) lists every interface; look for the inet line under your active interface, such as wlan0, wlp2s0 or eth0/enp3s0. Ignore lo, which is the loopback interface at 127.0.0.1. To find your router, run:

ip route show default

Using the desktop

On GNOME (Ubuntu, Fedora and others), open Settings, select Wi-Fi or Network, and click the gear icon next to the connected network. The IPv4 and IPv6 addresses are on the details page. KDE Plasma shows the same information when you click the network icon in the system tray and expand the connection's details.

iPhone and iPad (iOS 17 and later)

  1. Open Settings and tap Wi-Fi.
  2. Tap the (i) button next to the connected network.
  3. Scroll to the IPv4 Address section. Your IP Address and Router are listed there.

The "Private Wi-Fi Address" shown on the same screen is a MAC address, not an IP address. iOS does not show your mobile data IP in Settings; to see the public address your carrier assigns, open our What's My IP Number page in Safari with Wi-Fi turned off.

Android (14 and later)

  1. Open Settings and tap Network & internet (on Samsung phones: Connections).
  2. Tap Internet (Samsung: Wi-Fi).
  3. Tap the gear icon next to the connected network.
  4. Find IP address. On some phones it is under Network details, Advanced or View more.

On many phones you can also find it under Settings > About phone > Status (sometimes "Status information").

Chromebook

  1. Click the clock in the bottom-right corner to open Quick Settings.
  2. Click the arrow next to the Wi-Fi icon (or the network name), then click your connected network.
  3. The network's settings page opens. Expand the Network section to see the IP address, gateway and IPv6 addresses.

You can also go to Settings > Network > Wi-Fi and select the connected network.

On your router

Your router itself is juggling two addresses too: a private LAN address — the default gateway your own devices talk to, often 192.168.1.1, 192.168.0.1 or 10.0.0.1 — and a WAN or Internet address that your ISP assigns from its side.

  1. Find the default gateway using any of the methods above.
  2. Type that address into a browser and log in with the admin credentials, often printed on a label on the router. Our router login guide can help if the page will not load.
  3. Look on the Status, Internet or WAN page for the router's public address. The Attached Devices or DHCP Clients page lists the private address of every device on your network.
Note: If the WAN address on your router differs from the address shown on our What's My IP Number page, and especially if it starts with 100.64. to 100.127. or is a private range, your ISP is using carrier-grade NAT. Port forwarding will not work from outside in that situation.

Finding your IPv6 address

Every method above will show you an IPv6 address too, wherever one exists. A global IPv6 address will usually start with 2 or 3; anything starting fe80 is link-local, meaning it only means something on your own network. Want a quick, definitive answer on whether IPv6 actually works end to end for you? The IPv6 test settles it in seconds.

Frequently asked questions

Why does my computer show a different IP from the website?

Because they're showing you two genuinely different things. Your computer shows its own private address on the home network; the website sees whatever public address your router (or VPN) is presenting to the world. Both are correct at the same time — they just serve different purposes entirely.

My IP starts with 169.254. What does that mean?

That's a self-assigned link-local address, and it means your device gave up waiting on the router's DHCP server and assigned itself something just to have an address. Reconnect to Wi-Fi, restart the router, or check the cable — one of those three usually fixes it.

Is it safe to share my IP address?

Your private address, sure, completely harmless — it only means anything inside your own network anyway. Your public one is a little more sensitive: it reveals your ISP and roughly where you are, so only hand it to people or services you actually trust, like your ISP's own support team.

Why does my public IP keep changing?

Because most home and mobile connections run on dynamic addresses, which can shift the moment you reconnect or a lease simply expires. Curious when a fixed address is actually worth paying for? Static vs Dynamic IP Address lays it out.

Provalo tu stesso

Metti in pratica questa guida con i nostri strumenti gratuiti.

Commenti

Condividi un consiglio, fai una domanda o racconta come ti è andata con lo strumento.

Continua a leggere

Copiato negli appunti