Guide

How to Find Your IP Address on Any Device

By Hannan · · 7 min read

“What’s my IP address?” sounds like it has one answer, but it has two. Your device has a private IP address that only your home network uses. Your connection has a public IP address that every website sees. They look different, they’re found in different places, and which one you need depends on what you’re doing.

This guide shows how to find both on Windows, Mac, iPhone, Android and your router, plus a one-line command for the terminal.

Which IP address do you need?

If you want the background on why there are two kinds, our guide What Is an IP Address? explains public and private addresses in plain language. Otherwise, jump to your device.

Find your public IP address (any device)

Your device can’t tell you its public IP, because the address belongs to your router’s connection, not to the device. The quickest way is to ask a website that reads it from your connection.

Try it live

  1. Open the MyIPSpot homepage on the device you want to check.
  2. Your public IP appears in large type under What Is My IP Address?. Press Copy IP to copy it.
  3. Next to the button, the IPv4 or IPv6 pill shows which protocol your connection used for this visit.
  4. Below the map, the details card shows the Location, ISP and ASN that go with the address.

Two things to keep in mind. First, if you’re on a VPN, you’ll see the VPN server’s address, not your own, which is the point of a VPN. Second, many connections have both an IPv4 and an IPv6 address, and the page shows the one your connection used for that visit. Seeing IPv4 doesn’t prove you have no IPv6. Our IPv6 test checks the same thing on its own page.

Windows 11 and Windows 10

Your private IP, in Settings:

  1. Open Settings, then Network & internet.
  2. Choose Wi-Fi or Ethernet, whichever you’re using.
  3. Open your connection’s properties. On Windows 11, click the network name’s properties. On Windows 10, click the connected network.
  4. Scroll to IPv4 address. That’s your private IP.

With Command Prompt:

  1. Press the Windows key, type cmd and press Enter.
  2. Type ipconfig and press Enter.
  3. Find the section for your active adapter, such as Wireless LAN adapter Wi-Fi. IPv4 Address is your private IP, and Default Gateway is your router’s IP.

Your public IP from Command Prompt:

Windows 10 and 11 include curl, so you can type:

curl https://myipspot.com/ip

It prints your public IP and nothing else. In PowerShell, type curl.exe instead of curl, because curl there runs a different command. Our IP address API page has more examples, including how to force IPv4 or IPv6.

Mac

Your private IP, in System Settings:

  1. Open the Apple menu, then System Settings, then Network.
  2. Click Wi-Fi (or Ethernet), then Details next to the network you’re connected to.
  3. Open the TCP/IP tab. IP address is your private IP, and Router is your router’s IP.

On older versions of macOS, the path is System Preferences, then Network, then Advanced, then TCP/IP.

With Terminal:

Linux

Open a terminal and run:

iPhone and iPad

  1. Open Settings, then Wi-Fi.
  2. Tap the ⓘ button next to the network you’re connected to.
  3. Under IPv4 Address, IP Address is your private IP and Router is your router’s IP.

You’ll also see Private Wi-Fi Address on that screen. Despite the name, that’s a hardware (MAC) address your iPhone uses to identify itself to the network, not an IP address.

On mobile data there’s no settings screen that shows a useful address. Open the homepage to see your public IP instead.

Android

  1. Open Settings, then Network & internet, then Internet.
  2. Tap the gear next to the Wi-Fi network you’re connected to.
  3. Look for IP address. On some phones it’s under Advanced or View more.

Menu names vary by phone maker. On Samsung phones, the path starts at Settings, then Connections, then Wi-Fi. If you can’t find it, most phones also list the IP address under About phone, sometimes inside a Status section.

Your router

Your router’s private IP is the default gateway from the steps above. Common ones are 192.168.0.1, 192.168.1.1 and 10.0.0.1. Type it into a browser on the same network to open the router’s admin page.

Your router’s public IP is usually on the admin page’s status or internet screen, labelled WAN IP, Internet IP or similar. It should match what the homepage shows when you’re not on a VPN.

If the two don’t match, or the router’s WAN IP starts with 100.64 to 100.127, your provider is probably sharing one public address among several customers. That’s called carrier-grade NAT, and it’s the reason port forwarding sometimes doesn’t work. It’s common on mobile and some fiber connections.

Why your IP address can change

Most home and mobile providers assign dynamic addresses, so your public IP can change when your router restarts, when the provider renews its lease, or when you move between Wi-Fi and mobile data. Your private IP can change too, whenever your router hands out addresses again.

If you need an address that stays the same, you have two separate options. For a device at home, reserve its private IP in your router’s settings, often under DHCP reservation. For your public IP, ask your provider whether it offers a static IP, which is often a paid extra. Our guide to static vs dynamic IP addresses explains both, and the cheaper alternatives.

Frequently asked questions

Is 192.168.1.1 my IP address?

It’s usually your router’s private address, not yours. Your device has its own private address on the same network, and your public IP is a different number entirely. See your public one on the homepage.

Why do my phone and laptop show the same IP on websites?

Because they share your router’s public IP. Websites see the router’s address, and the router passes traffic to the right device using each one’s private IP.

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

Your computer’s settings show its private IP on the home network. Websites see your public IP. Both are correct; they’re two different addresses.

Can I find someone else’s IP address this way?

No. These steps only show addresses for your own device and connection. Our guide to IPv4 and IPv6 explains the two formats you might see.