Public and private IP addresses
Your devices use two kinds of address. At home or in the office, the router gives every computer, phone and TV a private address, usually from 192.168.0.0/16, 10.0.0.0/8 or 172.16.0.0/12. These ranges are reused in millions of networks and never appear on the Internet.
Towards the Internet, the router translates all of them to one public IP address (network address translation, NAT). That public address is the one websites see, and the one shown at the top of this page.
That is why the address in your computer's network settings differs from the one here: the settings show the private address, this page the public one.
IPv4 and IPv6
IPv4 addresses are four numbers from 0 to 255, such as 203.0.113.10. There are only about 4.3 billion of them, far fewer than devices online, which is why NAT and shared addresses exist.
IPv6 addresses are 128 bits long and written as hexadecimal groups separated by colons, such as 2001:db8::1. There are enough for every device to have its own public address, and many Swiss fixed and mobile networks already provide IPv6.
If your connection has both, your browser usually prefers IPv6, so this page shows an IPv6 address. Your IPv4 address still exists and is used for sites that don't support IPv6 yet.
Dynamic and static IP addresses
Most home and mobile connections get a dynamic address: the provider can assign a new one after a reconnect, a router restart or simply after some time. Some providers keep the same address for months, others change it daily; mobile networks change it often.
A static IP address never changes. It matters when others need to reach you at a fixed address: a mail or game server, remote access, or an allowlist in a firewall. Home providers often charge extra for it or don't offer it at all; a virtual server (VPS) has a fixed public address by design.
How IP location works
An IP address contains no GPS information. Location services use databases that map address ranges to the network operator that holds them and to the area where it uses them, compiled from registry records, operator data and measurements.
The country is usually right. Region and city are an estimate: they often point to where your provider routes its traffic, which can be a city some distance away. Mobile connections are frequently placed at the operator's central site.
The location and network data on this page come from the DB-IP database, which is updated monthly. If you recently changed provider, or your provider moved an address range, the new location may take a while to appear.
VPN, proxy and Tor
With a VPN, a proxy or the Tor network, websites don't see your own address but that of the server your traffic leaves from. This page then shows that server's address, location and network, which makes it a quick way to check that your VPN is working.
If you still see your Internet provider here while the VPN is on, your traffic is not going through it, for example because the VPN only carries IPv4 while your browser is using IPv6.
Shared addresses (CGNAT)
Because IPv4 addresses are scarce, some providers, mobile networks in particular, put many customers behind one public IPv4 address. This is called carrier-grade NAT (CGNAT). Your router then gets an address from 100.64.0.0/10, which this tool marks as shared address space.
Browsing works normally, but nobody on the Internet can connect to you directly over IPv4: port forwarding for a game server, a camera or remote access will not work. Use IPv6 if your provider offers it, ask for a public IPv4 address, or run the service on a server with its own address.
What your IP address reveals
Every website, app and mail server you connect to sees your public IP address. It reveals your provider and an approximate region, not your name or street address. Only your provider can tell which customer used an address at a given time, and it gives that out only when legally required.
We show your address so that you can see it. We do not store the addresses looked up with this tool.
How to change your IP address
Your public address is assigned by your provider, so you can't choose it, but you can usually get a different one:
- Restart the router: with a dynamic address, reconnecting often brings a new one. Some providers keep the same address for a long time, though.
- Switch networks: mobile data, another Wi-Fi network or a hotspot each have a different public address.
- Use a VPN: websites then see the address of the VPN server instead of yours.
- Ask your provider: for a new or a fixed address, or for a public IPv4 address instead of a shared one.
Find the local IP address of a device
The private address of a device is shown in its network settings:
- Windows: Settings → Network & Internet → your connection → Properties, or run
ipconfigin the Command Prompt (line "IPv4 Address"). - macOS: System Settings → Wi-Fi (or Network) → Details next to your network, or run
ipconfig getifaddr en0in Terminal. - Android: Settings → Network & internet → Wi-Fi → tap your network; the exact wording differs a little between manufacturers.
- iPhone and iPad: Settings → Wi-Fi → tap the ⓘ next to your network; the address is listed under IPv4 Address.