On this page
Public and local address
The router gives each device at home a local address, most often 192.168.x.x or 10.x.x.x. Devices find each other by it, and nobody outside sees it.
On the way out, the router swaps it for the one public address of the whole connection. That is the address sites, games and mail servers see. Mobile operators often put many customers behind one public address (this is called CGNAT), so a phone's public address can be shared with strangers.
IPv6 works differently: a device usually gets its own public IPv6 address, with no swap at the router. With a VPN on, sites see the VPN server's address instead of yours, and the local address stays the same.
Who gives it
Local addressYour router
Public addressYour ISP, or the VPN server when the VPN is on
What it looks like
Local address
192.168.1.5,10.0.0.7,fe80::…Public addressAnything else, for example
203.0.113.25Who sees it
Local addressDevices in your network
Public addressEvery site and service you use
Where to look
Local addressNetwork settings,
ipconfig,ip addrPublic addressThe my IP page, the router's status page
Your public address in a second
- 1
Open the my IP page
It shows the public address with its country, a rough city and the ISP as soon as it opens.
- 2
Or ask from a terminal
The commands below print the same address. With a VPN on they print the VPN server's.
nslookup myip.opendns.com resolver1.opendns.comThe last address in the answer is yours.
dig +short myip.opendns.com @resolver1.opendns.comcurl https://velivpn.com/v/ipThe address, country, city and ISP as JSON.
Your local address on each system
ipconfigIPv4 Address under your Wi-Fi or Ethernet adapter.
ipconfig getifaddr en0en0 is usually Wi-Fi; a cable adapter is often en1 or higher.
ip -4 addr showThe inet line of your network adapter, or just hostname -I.
- Android: Settings → Network & internet → Internet → the gear next to your Wi-Fi network. The IP address is in the network details; on Samsung it is Settings → Connections → Wi-Fi → the gear.
- iPhone and iPad: Settings → Wi-Fi → the (i) next to the network → IP Address.
- The router: its own page, often
192.168.0.1or192.168.1.1, shows the public address it got from the ISP under WAN or Internet status. If it differs from the my IP page with the VPN off, your ISP puts you behind CGNAT.
What an address tells others
From a public address anyone can tell the country, roughly the city, and the ISP or hosting company it belongs to. Not your street or your name: only the ISP can link an address to a contract, and only it knows who had the address at a given moment.
Sites use the address to pick the language and region, to count visitors and to fight abuse. Streaming and banking sites also check whether it belongs to a hosting company, which is how they notice a VPN.
The VPN is on but the address didn't change
- Reload the page after connecting: the browser may keep an old connection open.
- Split tunneling may send the browser past the tunnel. Check which apps and sites go direct.
- The browser may use its own proxy or a VPN extension, apart from the system.
- If only IPv6 shows your ISP, IPv6 goes past the tunnel: see the guide on IPv6 leaks.