Network security

How to Find My IP Address on Any Device (Windows, Mac, Phone)

You have two IP addresses that matter: a public one the internet sees, and a private one inside your home. Here is how to find both, on any device.

Cysoro Security TeamPublished · 8 min read
YOUR PUBLIC IP203.0.113.10IPv4 Private: 192.168.1.20 NETWORK SECURITY Find myIP address Public and private, on any device.
Quick answer

To find your public IP address, open a browser and search for what is my IP, or use a tool such as Cysoro's free what is my IP checker — it shows the address the internet sees. To find your private IP address on your computer, run ipconfig on Windows or ipconfig getifaddr en0 on a Mac, or open your Wi-Fi network details on an iPhone or Android phone.

Key takeaways

  • Your public IP is the address the internet sees; your private IP only works inside your home network.
  • On a computer, ipconfig on Windows and ipconfig getifaddr en0 on a Mac show your private IP in seconds.
  • Your router's address, listed as Default Gateway or Router, is what you type to open its settings page.

You do not have just one IP address. Every device on your network has a private one from your router, and your whole home shares a single public one from your internet provider. Which one you need depends on what you are doing — and each one is found in a different place.

What is an IP address?

An IP address is a number that identifies a device on a network, like a postal address for internet traffic. When you visit a website, your device sends its IP address with the request so the site knows where to send the page back.

IP addresses come in two formats. IPv4 addresses look like 203.0.113.10 — four groups of numbers separated by dots. IPv6 addresses are longer, using hexadecimal groups separated by colons, such as 2001:db8::1. Most homes use IPv4 day to day, with IPv6 running alongside it.

You will need your IP address for practical jobs: opening your router's settings, setting up a printer, running a home server, troubleshooting a connection, or checking whether your VPN is working. Our free what is my IP tool shows your public address the moment the page loads.

What is the difference between a public and a private IP address?

Your public IP address is the one the internet sees: it belongs to your whole connection, so every device on your home network usually shows the same public address. Your private IP address belongs to one device inside your network, and it only works there.

Your router translates between the two using NAT (network address translation). When your laptop requests a web page, the router sends the request out under the public address and routes the reply back to the laptop's private address.

Public IPPrivate IP
Who sees itEvery website and service you visitOnly devices on your own network
Assigned byYour internet providerYour router
Example203.0.113.10192.168.1.20
Same for all devices?Yes, usually one per homeNo, each device gets its own
How to find itIP checker website or curl commandDevice network settings or ipconfig
ChangesWhen your provider reassigns itWhen the router restarts or the lease renews

Private addresses come from three reserved ranges defined in RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. If your address starts with 192.168, 10., or 172.16–172.31, it is a private address — and it is the same range used in millions of other homes, which is why it only works inside yours.

How do I find my public IP address?

The fastest way is a browser: search for "what is my IP" and the answer appears at the top of the results, or open an IP checker site, which also shows your approximate location and provider name. Any device on the same network will show the same answer.

From a terminal, run curl ifconfig.me on a Mac or Linux machine, or curl.exe -4 icanhazip.com in Windows PowerShell. The -4 asks for your IPv4 address; use -6 for IPv6. These commands ask an outside server what address your request came from — which is your router's public address, not any one device's private address.

If you use a VPN, the public IP you see is the VPN server's address, not your provider's. That is the point: it is also how you check whether the VPN is working. If the checker shows your real provider, the VPN is leaking or off — our free WebRTC leak test checks for one common kind of leak.

How to find your IP address on a computer

On a computer you are looking for the private IP: the address your router gave that machine. The command line is the fastest route on both Windows and Mac, and the Settings app works if you prefer menus.

Find your IP address on a computer Windows — Command Promptipconfigread IPv4 Address Mac — Terminalipconfig getifaddr en0en0 is usually Wi-Fi Linux — Terminalip -br addror hostname -I
One command on each system shows your private IP address. Illustration by Cysoro.

Windows 10 and 11

Press the Windows key, type cmd and open Command Prompt, then type ipconfig and press Enter. Under your active connection — "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet" — read the IPv4 Address line. The Default Gateway line just below it is your router.

Without a terminal, open Settings, then Network and internet, choose Wi-Fi or Ethernet, open your connection's properties and scroll to IPv4 address. On Windows 10 Wi-Fi you may need to click Hardware properties first.

Mac

Hold Option and click the Wi-Fi icon in the menu bar: your IP address is listed there, along with your router's. For the longer route, open System Settings, choose Network, pick your connection, click Details and open the TCP/IP tab.

From Terminal, run ipconfig getifaddr en0. On most Macs, en0 is Wi-Fi; if the command prints nothing, try en1, or run ifconfig and look for the inet line under the active interface.

Linux

Run ip -br addr for a short list of addresses per interface, or hostname -I to print all of your addresses at once. The first address that is not 127.0.0.1 is your private IP on the active interface.

How do I find my IP address on my phone?

On a phone, the Wi-Fi settings show your private IP, and a browser checker shows your public IP. The two are different numbers, and confusing them is the most common mistake in this whole topic.

iPhone or iPad: open Settings, tap Wi-Fi, then tap the information icon next to your connected network and scroll to the IP address. The Router field on the same screen is your router's address.

Android: open Settings, tap Network and internet, then Internet, and tap the gear icon next to your connected Wi-Fi network. Look for IP address under the network details. Menus vary by maker — on a Samsung Galaxy, start at Settings, then Connections, then Wi-Fi. On a Pixel, the path is Settings, Network and internet, Internet, gear icon, Network details.

For your public IP on a phone, just open a browser and search for what is my IP. On mobile data the address reflects your carrier's network; on Wi-Fi it reflects your home provider or VPN.

How do I find my router's IP address?

Your router's address is the one you type into a browser to reach its settings page. Your device lists it as the Default Gateway (Windows, in ipconfig output) or Router (Mac and iPhone).

It is usually 192.168.1.1, 192.168.0.1 or 10.0.0.1. Type it into a browser's address bar and you should reach the router login page. If none of those work, check the gateway value your device reports rather than guessing — guessing wastes time and can land you on someone else's login page on some networks.

Once you can reach the router, the settings worth changing are covered in our guide to router security. CISA's home network security guidance lists the same steps, including disabling remote management and monitoring for unknown devices.

What is the difference between IPv4 and IPv6?

IPv4 is the older format, with about 4.3 billion possible addresses — not enough for every device on earth, which is why your home shares one public IPv4 address through NAT. IPv6 is the newer format, with vastly more addresses, so every device can have its own public address.

Most devices today have both: an IPv4 address and an IPv6 address. When you check your IP, note which one you are looking at — a checker usually shows both. If a service asks for your IP address and you give it the IPv6 one when it expected IPv4 (or the reverse), it will not match, so check which format the other side wants.

Private IPv6 addresses start with fe80:: (link-local) and are only valid on your local network, similar in spirit to the RFC 1918 private IPv4 ranges.

Can someone find my location from my IP address?

Only approximately. An IP address usually reveals your city or region and your internet provider, because providers assign addresses in blocks tied to areas. It does not reveal your street address, your name, or which device in your home made a request.

That approximate location is why IP checkers can show a city that is near you but not exact, and why it sometimes shows a different city entirely — especially if your provider routes traffic through another region. If you need to hide even that approximate location, a VPN changes the public IP websites see to the VPN server's address.

Do not share screenshots of your IP address publicly, and do not post your public IP in forums when asking for help. It is not a password, but there is no reason to hand it to strangers.

What if the IP address looks wrong?

If your private IP starts with 169.254, your device failed to get an address from the router — restart the router and the device, then try again. If ipconfig shows no IPv4 address at all, check that you are connected to the right network and that Wi-Fi or Ethernet is actually enabled.

If a website shows a different public IP than you expect, check whether a VPN is running, including a VPN built into a browser or a work profile. If the public IP changes every time you check, your provider is assigning dynamic addresses — normal for most home plans. For a stable address, ask your provider about a static IP, which usually costs extra.

If you need to look up the address of a website or server rather than your own, our free DNS lookup tool shows the records behind a domain, including its IP addresses.

One public address, many private ones Internetsees public IP 203.0.113.10 Your routertranslates with NAT Laptop 192.168.1.20 Phone 192.168.1.37 TV 192.168.1.50
Your router shares one public IPv4 address between all your devices. Illustration by Cysoro.

The bottom line

Your public IP is what the internet sees — find it with a search or an IP checker. Your private IP is what your router gave your device — find it with ipconfig on Windows, ipconfig getifaddr en0 on a Mac, or your phone's Wi-Fi details. Your router's address is the Default Gateway or Router value on the same screen.

Keep those three straight and most network jobs get much easier. To see your public address right now, open our free what is my IP tool.

If you want to lock down the network behind it, read our guide to how to secure your Wi-Fi.

Frequently asked questions

How do I find my IP address on my computer?

On Windows, open Command Prompt and type ipconfig, then look for IPv4 Address under your active connection. On a Mac, open Terminal and type ipconfig getifaddr en0, or go to System Settings, Network, then Details and the TCP/IP tab.

What is my public IP address?

Your public IP address is the address your internet provider assigns to your connection, and it is what websites see. The fastest way to see it is to search for what is my IP in a browser, or open an IP checker tool.

What is the difference between a public and a private IP address?

A public IP identifies your whole connection on the internet. A private IP identifies one device inside your home network, and only works there. Your router translates between the two with NAT, so all your devices share one public IPv4 address.

How do I find my IP address on my iPhone?

Open Settings, tap Wi-Fi, then tap the information icon next to your connected network and scroll to the IP address. That is your private IP. For your public IP, use a browser-based IP checker while on Wi-Fi or mobile data.

How do I find my router's IP address?

Your router's address is listed as Default Gateway on Windows (in ipconfig output) or Router on a Mac and iPhone. It is usually 192.168.1.1, 192.168.0.1 or 10.0.0.1. Type it into a browser to open the router settings page.

Can someone find my exact location from my IP address?

No. An IP address usually reveals only an approximate location, such as your city or region, and your internet provider. It does not reveal your street address or identity on its own.

Does my IP address change?

Usually, yes. Most home internet plans use dynamic IP addresses, so your public IP can change when your router restarts or your provider reassigns it. Business lines and some VPNs use static addresses that stay the same.

Sources

  1. IETF RFC 1918 — Private IP Address Allocation
  2. CISA — Home Network Security
  3. Engadget — How to find your IP address
  4. McAfee — What Is My IP Address?
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 1918 for private address ranges and CISA's home network guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free