What is my IP address?
This is the public address websites see when you connect. It is read from your connection at the moment you load this page.
Public IP vs private IP: how NAT hides your devices
Your router gets one public IPv4 address from your ISP. Every device at home gets a private address from one of the ranges set aside by RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). When a device talks to the internet, the router rewrites the source address to its public one and remembers which inside device used which outside port. That's Network Address Translation. Switch devices on and watch the router's table fill up.
| Inside | Outside |
|---|---|
| 192.168.1.23:51514 | 203.0.113.7:46514 |
| 192.168.1.41:49822 | 203.0.113.7:44822 |
203.0.113.7
2 devices, one address. Example address (your connection uses IPv6).
With IPv6 there are enough addresses for every device to have its own global address, so NAT is normally not needed; privacy extensions (RFC 8981) rotate the address instead.
What your IP address reveals, and what it doesn't
- Reveals: your ISP or VPN provider, the country, usually the region, and whether you're on a mobile, home or data-centre network.
- Doesn't reveal: your name, street address or which device you're using. Only your ISP can map an address and timestamp to an account.
- Carrier-grade NAT: if your router's WAN address starts with 100.64 to 100.127, your ISP puts many customers behind one public IP (RFC 6598). Port forwarding won't work from outside in that case; check with the open port checker.
Find your private (local) IP
- Windows: run
ipconfigand read "IPv4 Address". - macOS:
ipconfig getifaddr en0(Wi-Fi), or System Settings → Network. - Linux:
ip -4 addr showorhostname -I. - iPhone / Android: Wi-Fi settings → tap the connected network.
From a terminal
To print your public IP in a script, ask a DNS resolver that echoes it back: dig +short txt ch whoami.cloudflare @1.1.1.1 or dig +short myip.opendns.com @resolver1.opendns.com.