· 4 min read
How to find your IP address on any device
There are two addresses to find: the public one the internet sees, and the private one your router gave a specific device. The first takes one click. The second depends on the device, and every platform is covered below.
On this page
Which address do you want?#
Your public address is the one every website sees. It belongs to your router or your ISP's equipment, so it is the same on every device in the house. Your private address is the one your router gave a single device, and it only means something on your own network. Public vs private IP addresses explains why there are two.
| I want | Fastest way |
|---|---|
| My public address | Open this site's home page, or run curl https://my-ip-address.in/ip in a terminal |
| A device's private address | The network settings of that device, or one terminal command (below) |
| My router's address | The "default gateway" line in the same settings |
| My public address, from the router's own view | The Internet or WAN page of the router's admin panel |
Your public IP address#
The home page reads it straight off the connection you are using and shows both IPv4 and IPv6 if you have them. Nothing to install and nothing to log in to. If you would rather stay in the terminal, the same site answers plain-text requests:
curl https://my-ip-address.in/ip # just the address
curl https://my-ip-address.in/ip.json # the address as JSONPaste the result into a lookup to see the ISP, the network and the approximate location that anyone else would learn from it.
Your private IP address, device by device#
Windows 10 and 11
- Open Settings, then Network & internet.
- Choose Wi-Fi or Ethernet, whichever you are connected with, and open the network's Properties.
- Read the IPv4 address and, if present, the IPv6 address rows.
ipconfig
Ethernet adapter Ethernet:
IPv4 Address. . . . . . . . . . . : 192.168.1.14
Default Gateway . . . . . . . . . : 192.168.1.1macOS
- Open System Settings, then Wi-Fi (or Network for Ethernet).
- Click Details next to the connected network.
- Open TCP/IP to see the address, the router and the subnet mask.
ipconfig getifaddr en0Linux
ip -br addr # one line per interface, with its addresses
ip route get 1.1.1.1 # shows the source address used to reach the internet
hostname -I # all addresses on one line (not available on every distribution)The desktop network settings show the same thing under the connection's details. The ip command is documented in the ip(8) manual page.
Android
- Open Settings, then Network & internet (or Connections on some phones), then Wi-Fi.
- Tap the connected network, or the gear beside it.
- Open Advanced or Network details to see IP address.
The wording moves between manufacturers and Android versions, but the path is always Wi-Fi, then the connected network's details.
iPhone and iPad
- Open Settings, then Wi-Fi.
- Tap the ⓘ button next to the connected network.
- Read IP Address under the IPV4 ADDRESS heading, with the router beside it.
On mobile data iOS does not show an address at all. The public address on the home page is the one that matters there anyway.
Your router
- Find the router's address: it is the default gateway from any of the steps above. Common values are
192.168.0.1,192.168.1.1and10.0.0.1. - Type it into a browser and log in. The default credentials are usually printed on a label on the router, and should have been changed.
- Open the status, Internet or WAN page. It shows the public address, and usually the DNS servers and connection type too.
Compare the WAN address with the one on the home page. A match means your router owns the public address. A mismatch, or a WAN address starting 10., 192.168. or 100.64 to 100.127, means your ISP is translating addresses upstream: see what NAT and CGNAT are.
If the address looks wrong#
- It is in another country. A VPN, proxy or corporate gateway is probably on. The VPN check says whether the address belongs to one, and the leak test says whether anything is escaping around it.
- Your phone and laptop disagree. One is on mobile data or a different network, or one of them is using IPv6 and the other IPv4.
- It changed since yesterday. Most home addresses are dynamic. See static vs dynamic IP addresses.
- It starts with 169.254. The device could not reach the router's DHCP service. Check the cable, the Wi-Fi password, and whether the router is on.
- The location is a city you never visited. That is normal, and a property of geolocation rather than of your address: why IP location is often wrong.
Common questions#
Is it safe to share my IP address?
Sharing it does not give anyone access to your devices, and it reveals your ISP and an approximate region. It lets someone aim a denial-of-service flood at your connection, which is disruptive rather than dangerous. Do not post it publicly without a reason.
How do I find someone else's IP address?
You cannot get it from a name or a photo. You can see the address of a server by looking up its domain, and the address of a person who connects to something you run appears in that service's own logs. A lookup accepts a domain and returns the address it resolves to.
Why do I have two IPv4 addresses?
You do not: you have one private and one public. The private one is on your device, the public one is on your router. They are different roles for the same connection.
Try it on your own connection
- Check your public IP addressSee the address every website sees, with the network and location behind it.
- Test for IP, DNS and WebRTC leaksFind out whether a VPN is really hiding what you think it is.
- Check whether an address is a VPN, proxy or Tor exitSee how a site would classify the network you are on.
Sources and further reading
- Microsoft Learn: ipconfig — Every ipconfig switch.
- Linux man page: ip(8) — The iproute2 command used in the Linux steps.
Keep reading
- Addressing and routingPublic vs private IP addressesYour devices have a private address from your router and share one public address with the internet. The ranges, how NAT links them, and how to tell which is which.
- Addressing and routingStatic vs dynamic IP addressesA dynamic IP is leased and can change; a static IP stays put. How each works, when a static address is worth paying for, and how to tell which one you have.
- FundamentalsWhat is an IP address?An IP address is the label that lets devices find each other on a network. What one looks like, who assigns it, and what it can and cannot reveal about you.
- PrivacyHow websites see your IP addressEvery site you visit receives your public IP address. Where it comes from, how proxies and CDNs pass it along, what else is sent with it, and what a VPN changes.
Published by My IP Address