Skip to content

How to Find Your IP Address on Any Device (Public and Private)

TL;DR: To find your IP address, you need to know which one you want. For your public address — the one websites see — open any IP lookup page or search “what is my IP.” For your private address — the one your router assigned — look in the device’s network settings: Windows in Settings → Network → Properties, macOS in System Settings → Wi-Fi → Details, iPhone in Wi-Fi → the (i) beside the network, Android in Wi-Fi → the connected network.

Which address you actually want

This is the first question, and getting it wrong is why people check twice and get two different answers.

Public IP. Assigned by your provider, visible to every site you visit, shared by all devices on your home network. Use this when you need to whitelist yourself, report a problem to your provider, or check whether a VPN is working.

Private IP. Assigned by your router, only meaningful inside your network. Use this when configuring port forwarding, connecting to a printer, or troubleshooting why one device cannot reach another.

Both are correct. If your laptop and phone show different numbers in their settings but the same number on a lookup site, that is exactly as it should be.

Windows

Two routes, depending on how much detail you want.

Settings. Settings → Network & internet → Wi-Fi (or Ethernet) → the network you are connected to. The IPv4 address is listed there, along with the gateway and DNS servers.

Command line. Open Terminal and run ipconfig. The “IPv4 Address” line under your adapter is the private address. Run ipconfig /all for the full set including the MAC address and DHCP details.

If you have both Wi-Fi and Ethernet adapters, note which one you are actually using, because the other will show a stale or disconnected state.

macOS

System Settings. Network → Wi-Fi → Details next to the connected network. The IP address tab shows the IPv4 address, subnet mask, and router.

Terminal. ipconfig getifaddr en0 returns the Wi-Fi address in one line, which is faster than clicking through settings. Use en1 for Ethernet on most Macs.

On older macOS versions the path is System Preferences → Network → Advanced → TCP/IP, and the information is the same.

iPhone and iPad

Settings → Wi-Fi → tap the (i) beside the connected network. The IP address is under the IPV4 ADDRESS heading, with the router below it.

Two notes worth knowing. The address shown is the private one; for the public one you need a browser lookup. And if “Private Wi-Fi Address” is enabled — it is by default — your device presents a randomised MAC address to each network, which does not change your IP but does change how the network identifies the device.

Android

Settings → Network & internet → Wi-Fi → tap the connected network → the IP address is listed with the gateway.

The exact path varies by manufacturer. On Samsung it is Settings → Connections → Wi-Fi → the gear icon. On stock Android it is as above. If you cannot find it, searching the settings app for “IP address” is faster than navigating menus that differ between versions.

The public address, on any device

For the address the internet sees, the device does not matter — every device on your home network shares the same public address, because the router translates them all.

Three ways to check it: search for “what is my IP” and read the result box; open a lookup site; or on a machine with curl, run curl ifconfig.me in a terminal. All three return the same value, and all three are equally reliable for this purpose.

What differs is what they show alongside it. A lookup that displays the provider, the approximate location, and the connection type is more useful for diagnosing a problem than a bare number, because it tells you whether you are exiting through your home connection, a mobile network, or a VPN.

Why the answer changes

If your IP is different from yesterday, the cause is almost always one of these.

Router restart or reconnection. Most residential connections use dynamic addresses that are reassigned when the link comes back up.

Network switch. Moving from Wi-Fi to mobile data changes the public address instantly.

VPN. A VPN replaces your public address with the server’s, which is the point of it.

IPv4 versus IPv6. If your connection supports both, a lookup may return whichever your browser negotiated, so two checks can show different formats entirely.

None of these indicate a fault. A public address that never changes over months is the unusual case, and it means you have a static address.

Finding it when you cannot use the device

If a device has no screen — a printer, a camera, a smart plug — the router’s admin page is the answer. The connected-devices list shows each client’s private address, sometimes named, and it is the standard way to find a device you cannot query directly.

If you need to record the public address for a support ticket or a whitelist, a public IP lookup that shows provider and location gives you the address plus the context support staff usually ask for, which saves a round trip.

The short version

Public address: any lookup site, shared by every device on the network. Private address: the device’s own network settings, different per device and per network. All four platforms put it within two taps of Wi-Fi settings, and the address changing is normal rather than a fault.