How to Find Your IP Address on Any Device
Need to find your IP address? This step-by-step guide covers both your public and private IP on Windows, macOS, Linux, iPhone, Android and your router — with the exact clicks and commands for each.
Finding your IP address sounds like it should be one simple task, but there is a twist: you actually have two IP addresses, and which one you need depends on why you are looking. Before the steps, it is worth a quick 30 seconds to understand the difference, so you know you are reading the right number.
Public vs private: which IP address do you need?
Your private IP address is the one your device uses inside your own network. It looks like 192.168.1.24 and is handed out by your router. You need it for things happening at home: setting up a printer, forwarding a port, or connecting to another device on the same network.
Your public IP address is the one the whole internet sees — a single address, like 192.0.2.1, that your router presents on behalf of every device in your home. You need it for things involving the outside world: hosting a game server, allowing remote access, or telling a support technician how you appear online.
The two differ because of a technology called NAT, and the whole relationship is explained in our guide to public versus private IP addresses. Keep the distinction in mind as you follow the steps below.
A website can only ever see your public address. Your operating system's network settings show your private address. If the two numbers do not match, nothing is wrong — that is exactly how NAT is meant to work.
The fastest way: find your public IP in a browser
If it is your public address you are after, forget menus and commands entirely. Open any web browser on any device and visit a "what's my IP" page — such as IP Animals. Because your request travels all the way out to the site, the site sees and reports the public address your connection is using. It works identically on a phone, tablet or computer, and it is by far the quickest route.
For your private address, though, you need to ask the device itself. Here is how, platform by platform.
Find your private IP on Windows
The quick way (Command Prompt):
- Press the Windows key, type
cmd, and open Command Prompt. - Type
ipconfigand press Enter. - Find your active connection (Wi-Fi or Ethernet). The IPv4 Address line — for example
192.168.1.24— is your private IP. The Default Gateway line is your router's address.
The menu way: open Settings → Network & Internet, select your active Wi-Fi or Ethernet connection, and scroll to the IP address details.
Find your private IP on macOS
The menu way:
- Open System Settings (or System Preferences on older versions).
- Click Network, then select your active connection (Wi-Fi or Ethernet).
- Click Details, and read the IP address, such as
192.168.1.31.
The quick way (Terminal): open the Terminal app and run ipconfig getifaddr en0 for Wi-Fi, or en1 for wired connections on some Macs.
Find your private IP on Linux
Open a terminal and use any of these:
ip address(or the shorterip a) — the modern standard. Look for theinetline under your active interface, such as192.168.1.50.hostname -I— prints your addresses directly, which is handy for a quick check.ip route— thedefault vialine shows your router's gateway address.
Most desktop Linux environments also show the address in their graphical network settings if you prefer clicking to typing.
On every desktop platform, the address labelled default gateway is your router. It is usually the same as your private IP but with the last number replaced — commonly 192.168.1.1.
Find your private IP on iPhone (and iPad)
- Open Settings and tap Wi-Fi.
- Tap the small info (i) button next to the network you are connected to.
- Under the IPv4 Address section, read the IP Address — for example
192.168.1.60. The Router line shows your gateway.
For your public IP on an iPhone, simply open a browser and visit an IP checker, exactly as on a computer.
Find your private IP on Android
Menus vary a little by manufacturer, but the path is broadly:
- Open Settings → Network & internet → Wi-Fi (or Connections → Wi-Fi on some phones).
- Tap the network you are connected to, or its gear/settings icon.
- Look for IP address in the details, such as
192.168.1.72.
Alternatively, on many phones you can find it under Settings → About phone → Status information. As always, a browser gives you the public address.
Find your router's admin page and public IP
Your router knows both your private network layout and the public address your provider assigned. To reach its admin page:
- Find your router's address — the default gateway from any of the steps above, often
192.168.1.1or192.168.0.1. - Type that address into a browser's address bar and press Enter.
- Log in. The credentials are frequently printed on a sticker on the router itself. (If you have never changed the default password, changing it is a good idea.)
- Look for a Status, WAN, or Internet page. The WAN IP shown there is your public address as seen by your provider.
One subtlety: if your provider uses large-scale "carrier-grade" NAT, the WAN address on your router may itself be a shared address rather than a truly public one. In that case, an external IP checker is the more reliable source of your real public address.
Quick reference table
| Device | Where to look | Shows |
|---|---|---|
| Windows | ipconfig or Settings → Network | Private IP + gateway |
| macOS | System Settings → Network → Details | Private IP + gateway |
| Linux | ip a / ip route | Private IP + gateway |
| iPhone / iPad | Settings → Wi-Fi → (i) | Private IP + router |
| Android | Settings → Wi-Fi → network details | Private IP |
| Router page | Gateway address in a browser | Public (WAN) IP |
| Any browser | An IP checker website | Public IP |
A note on IPv6 and changing addresses
Many connections now also have IPv6 addresses, which look like 2001:db8::1 rather than the familiar dotted-decimal form. The same tools above show them; you will simply see additional, longer addresses alongside the IPv4 ones. If the two formats are unfamiliar, our comparison of IPv4 vs IPv6 untangles them.
Finally, do not be surprised if the numbers change over time. Most home connections use a dynamic address that your provider can rotate, and private addresses can shift when devices reconnect. That is completely normal. Whenever you want the current answer for your public address, a quick trip to IP Animals is all it takes.
Frequently asked questions
What is the fastest way to find my public IP address?
The quickest method is to visit a what-is-my-IP website in any browser. Because your request travels out to the site, it sees and reports the public address your whole network is using, with no menus or commands required.
Why is the IP on my computer different from the one a website shows?
Your device shows its private address, used only inside your home network, while a website shows the public address your router presents to the internet. They differ because of NAT, which lets many devices share one public address.
How do I find my router's IP address?
Your router's address is the default gateway on your device. On Windows run ipconfig and read the Default Gateway line; on macOS or Linux check the network settings or run a route command. It is commonly something like 192.168.1.1.
Does my IP address change?
Often, yes. Most home connections use a dynamic public address that your provider can change from time to time, and private addresses can change when devices reconnect. Some connections use a static address that stays fixed.
Is it safe to share my IP address?
An IP address alone reveals only a rough location and your provider, not your name or exact home. Still, it is sensible not to broadcast it publicly, since it can be used for coarse targeting. Treat it as low-sensitivity but not entirely public.