Networking9 min readUpdated 2026-08-31

How to Find Your IP Address on Any Device

Tools mentioned in this guide

When someone asks for your IP address, there are two possible answers, and giving the wrong one wastes everybody's afternoon. Your public IP is the address the rest of the internet sees — one address shared by every device in your home. Your private IP is the address your router hands out inside your own network, and it is different on your laptop, your phone and your printer.

A support agent troubleshooting your connection wants the public one. A guide about setting up a printer, forwarding a port or reaching a network drive wants the private one. This page covers both, on every platform.

The quickest route to the public one is the Internet Speed Test — it shows your public IP, city and serving edge node on page load, before you start a test.

Public IP vs private IP: which one do you need?

Every home network has one public IP and as many private IPs as it has devices. Your router translates between them, which is why a hundred devices share one public address.

 Public IPPrivate IP
Who assigns itYour internet providerYour own router
How many you haveOne per connectionOne per device
Typical value23.16.171.128192.168.0.120
Visible fromAnywhere on the internetOnly inside your network
Asked for whenISP support, allowlists, remote access, geo issuesPrinters, NAS drives, port forwarding, local servers

A shortcut for telling them apart: if the address starts with 192.168., 10., or anything from 172.16. to 172.31., it is private and reserved for internal use — those ranges are not routable on the public internet. Anything else is public. To see how such a range is carved up, the Subnet Calculator does the arithmetic.

How to find your public IP address

Your public IP is the easy one, because any server you connect to can already see it and simply tell you.

  1. In a browser — open the Internet Speed Test. The "Your connection" panel shows your public IP, your city and which edge server answered, on page load.
  2. From a terminal — on macOS or Linux, ask a public resolver directly:
    dig +short myip.opendns.com @resolver1.opendns.com
    This is worth knowing because it does not depend on any single website staying online.
  3. From your router — the admin page usually lists the public address under WAN or Internet status. This is the authoritative source, since it is the address your ISP actually assigned.

All three should agree. If two disagree, you are probably behind a VPN in one and not the other.

How to find your private IP address on Windows

The fastest route is the command line, but the Settings app works if you would rather not open a terminal.

  1. Press Win + R, type cmd and press Enter.
  2. Type ipconfig and press Enter.
  3. Find the adapter you are actually using — "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet" — and read IPv4 Address. That is your private IP.
  4. Default Gateway, two lines below it, is your router's address.

Ignore adapters marked "Media disconnected" and virtual ones added by VirtualBox, VMware, Hyper-V or a VPN client. They have IPs too, and they are the most common reason someone reports a private IP nothing else on the network can reach.

Through the GUI instead: Settings → Network & internet, click your Wi-Fi or Ethernet connection, and read the IPv4 address near the bottom.

How to find your private IP address on a Mac

Nearly every guide on the internet tells you to run this:

ipconfig getifaddr en0

On a lot of Macs that command prints nothing at all — no error, just an empty line — because en0 is not always the interface you are using. On the machine this guide was written on, Wi-Fi is en1 and en0 is a wired port with no cable in it. Macs with a dock, a USB Ethernet adapter or a second network port often number interfaces this way.

Ask the system which interface actually carries your traffic instead of guessing:

ipconfig getifaddr $(route -n get default | awk '/interface:/{print $2}')

That returns the private IP of whichever interface holds the default route — 192.168.0.120 on the test machine — and it keeps working when you switch from Wi-Fi to Ethernet. To confirm which device is which, run networksetup -listallhardwareports.

If you prefer clicking: System Settings → Network, select your active connection, click Details, and the IP address is on the TCP/IP tab.

How to find your private IP address on iPhone and iPad

  1. Open Settings and tap Wi-Fi.
  2. Tap the ⓘ button beside the network you are connected to.
  3. Read IP Address under the IPV4 ADDRESS heading. Router just below it is your gateway.

Two things surprise people. On cellular data there is no equivalent screen — your carrier assigns that address and does not expose it to the device, so check your public IP in a browser instead. And Private Wi-Fi Address, which you may see switched on, randomises your MAC address, not your IP — which is why a device can look brand new to your router after an iOS update.

How to find your private IP address on Android

Menu names vary by manufacturer; the path is consistent:

  1. Settings → Network & internet → Internet (or "Wi-Fi" on older builds).
  2. Tap the gear icon beside your connected network.
  3. Expand Advanced or Network details and read the IP address.

Samsung devices put the same information under Settings → Connections → Wi-Fi, then the gear icon and View more. If the entry is missing entirely, the phone is on mobile data rather than Wi-Fi.

How to find your private IP address on Linux

On any modern distribution, ip replaced the old ifconfig:

ip -4 addr show
ip route get 1.1.1.1

The first lists every interface with an IPv4 address. The second is more useful when several are active: it prints the exact source address and interface the kernel would use to reach the internet — almost always the one you want. ip route | grep default gives the router's address.

How to find your router's IP address

Your router's address — the "default gateway" — is what you type into a browser to reach its admin page. It is almost always the first usable address in your private range, but do not assume it.

PlatformCommand or path
Windowsipconfig → "Default Gateway"
macOSroute -n get default → "gateway"
Linuxip route | grep default
iPhone / iPadWi-Fi → ⓘ → "Router"
AndroidNetwork details → "Gateway"

Common defaults are 192.168.0.1, 192.168.1.1 and 10.0.0.1, but ISP routers vary and mesh systems may hand you something else. Reading it takes five seconds; guessing wrong costs longer.

IPv4 and IPv6: why your address might look nothing like the examples

If the address you found is four numbers separated by dots, that is IPv4 — about 4.3 billion possible addresses, which the internet exhausted years ago. If it is a long string of hexadecimal separated by colons, such as 2001:0db8:85a3::8a2e:0370:7334, that is IPv6, and the address space is large enough that it will not run out.

Most connections now run both at once, so it is normal to see an IPv4 and one or more IPv6 addresses on the same interface. Which one a given site sees depends on what that site supports. Two practical consequences:

  • An allowlist built from your IPv4 address will not match you when your device chooses IPv6, and vice versa. If access breaks intermittently, this is the first thing to check.
  • IPv6 is usually assigned per device rather than shared behind translation, so it identifies a single machine more precisely than a shared IPv4 does.

Not every connection has IPv6 yet. If an IPv6 lookup keeps returning an IPv4 address, your provider has not enabled it on your line.

Your IP address is not your MAC address

These get confused constantly, and network setup guides are not always careful about which they mean.

A MAC address is six pairs of hexadecimal digits, like 1c:f6:4c:3c:72:40. It is burned into the network hardware, it identifies the adapter rather than the connection, and it never leaves your local network — routers do not forward it. An IP address is assigned by software, changes when you move between networks, and is how traffic finds you across the internet.

The practical test: if a setup screen asks for something with colons and letters, it wants the MAC. If it wants dots and numbers, it wants the IP. Router features like DHCP reservations and MAC filtering use the MAC; port forwarding and printer setup use the IP.

Static vs dynamic IP addresses

Most home connections get a dynamic public IP: the ISP leases you one and it may change after a reboot, an outage, or on the provider's schedule. Fine for browsing, terrible for anything that must be reached from outside — the address you shared last week may now belong to someone else.

A static IP never changes. ISPs generally charge business rates for one. Before paying, check whether you actually need it — dynamic DNS gives you a stable hostname that follows a changing IP, and it costs nothing.

Inside your own network the same choice exists and is free: a DHCP reservation in your router pins a specific private IP to a specific device. That is the correct fix for a printer or NAS that "disappears" every few weeks — the device has not broken, its private IP moved.

What your IP address actually reveals

Worth being accurate about, because this topic attracts a lot of exaggeration in both directions.

What it does reveal: your rough geographic area — usually the city or region of your ISP's equipment, not your street — and who your internet provider is. That is enough for a streaming service to enforce licensing and for a site to guess your language.

What it does not reveal: your name, your address or your identity. The mapping from a public IP to a subscriber sits with your ISP and is released under legal process, not to whoever reads a log. IP geolocation is also routinely wrong by tens or hundreds of kilometres, which is why it can place you in a different city entirely.

If you want to change what sites see, a VPN substitutes its server's IP for yours — but understand the trade: you move the ability to see your traffic from your ISP to the VPN operator, which helps only if you trust them more. Free VPNs are funded somehow. And if the real concern is account security rather than location, a strong unique password on each account does far more good than hiding an IP.

Frequently asked questions

Why does my IP address look different on my phone than on my laptop?
Because you are looking at private IPs, and every device on your network gets its own. On the same Wi-Fi they will share a public IP but differ in the last part of the private one — for example 192.168.0.120 and 192.168.0.121. If the phone is on mobile data instead of Wi-Fi, even the public IPs differ, because it is on your carrier's network rather than your home connection.
Why does ipconfig getifaddr en0 return nothing on my Mac?
Because en0 is not your active interface. Interface numbering depends on the hardware, and on many Macs Wi-Fi is en1 while en0 is an unused wired port. The command succeeds with no output rather than erroring, which makes it look broken. Use ipconfig getifaddr $(route -n get default | awk '/interface:/{print $2}'), which asks the system which interface holds the default route, or run networksetup -listallhardwareports to see the mapping.
How do I find my printer's IP address?
Print the printer's own network configuration page — nearly every network printer has one under Settings, Reports or Network Setup on its front panel, and it lists the IP. Failing that, open your router's admin page and look at the connected-devices list. Once you have it, add a DHCP reservation for that printer in the router so the address stops changing.
Can a website see my private IP address?
In normal use, no. A website sees the public IP your router presents. Browsers used to leak local addresses through WebRTC, but current versions replace local candidates with randomised .local hostnames specifically to stop that. Your private IP is only meaningful inside your own network anyway — 192.168.0.120 identifies a different device in every house on your street.
How do I change my IP address?
For a private IP, release and renew the lease — reconnect to Wi-Fi, or run ipconfig /release then ipconfig /renew on Windows — or set a static address in your device's network settings. For a public IP, powering the router off for several minutes often gets you a new lease from your ISP, though not always; some providers hold the assignment for days. A VPN changes the address sites see without changing the one your ISP assigned.
Can someone find my home address from my IP?
No. Public geolocation databases map an IP to a city or region — often the location of ISP infrastructure rather than yours, and frequently wrong by a wide margin. The link between an IP and a named subscriber exists only in your ISP's records and is disclosed under legal process. Anyone claiming to have found your street address from an IP alone is guessing or bluffing.
What does an IP address look like?
An IPv4 address is four numbers from 0 to 255 separated by dots, such as 23.16.171.128. An IPv6 address is up to eight groups of hexadecimal separated by colons, such as 2001:0db8:85a3::8a2e:0370:7334, where :: stands in for a run of zeroes. Anything with letters and colons in pairs — like 1c:f6:4c:3c:72:40 — is a MAC address, not an IP.
How do I find the IP address of a website?
Run dig +short example.com on macOS or Linux, or nslookup example.com on Windows. Expect more than one answer: large sites sit behind CDNs and return different addresses depending on where you are asking from, so the IP you get is the nearest edge node rather than a single origin server.
Why does my IP address keep changing?
Because it is dynamic, which is the default on residential connections. Public IPs are leased and the lease can be reassigned after a reboot or outage. Private IPs change for the same reason inside your network. A DHCP reservation fixes the private one; dynamic DNS solves the public one without paying for a static IP.
Does my IP address affect my internet speed?
Not directly — an address is an identifier, not a capacity. What it does affect is routing: an IP that geolocates a long way from a server means more physical distance, and distance is most of your latency. Run the Internet Speed Test to see both your throughput and your ping, and read Ping, Jitter and Latency Explained for what those numbers mean.

Next steps

Useful follow-ups:

Ready to try it?

Use the tool right now — free, no signup, no upload.