ThunderHosting
EN

Tools

What is my IP address?

Your public IP address as the Internet sees it, with location, network and reverse DNS. Check any other address below.

Your IP address

Looking up…

From the command line

Fetch your public IP address from any terminal. The output is the address only, nothing else, so it is safe to use in scripts.

Bash, macOS, Linux

curl -fsS https://api.thunderhosting.com/management/api/v1/public/tools/my-ip

Windows PowerShell

(Invoke-RestMethod -Uri 'https://api.thunderhosting.com/management/api/v1/public/tools/my-ip').Trim()
  • Add -4 or -6 to curl to force IPv4 or IPv6.
  • On Windows, use curl.exe in PowerShell (plain curl is an alias of Invoke-WebRequest).
  • Only a few requests per few minutes are allowed per address. If you exceed the limit, the command prints nothing and exits with an error.

Check another IP

Enter an IPv4 or IPv6 address, e.g. 203.0.113.10 or 2001:db8::1. Host names are not looked up.

Location and network data: DB-IP (CC BY 4.0)

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 ipconfig in the Command Prompt (line "IPv4 Address").
  • macOS: System Settings → Wi-Fi (or Network) → Details next to your network, or run ipconfig getifaddr en0 in 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.

Frequently asked questions

Can someone find my home address from my IP address?

No. An IP address points to your provider and an approximate area, not to a person or an address. Only your provider knows which customer used an address at a given time, and it gives that out only when legally required.

Why does the location shown not match where I am?

IP location comes from databases that record where address ranges are used, not from your device. It is often the city where your provider routes its traffic, which can be some distance away, and for mobile connections sometimes another region altogether.

Why do my phone and my computer show different IP addresses?

Each network has its own public address. On mobile data your phone uses the mobile operator's address; on your Wi-Fi it shares the router's public address with your computer. With IPv6, every device even has its own public address.

Does my IP address change?

With most home and mobile connections, yes: the address is dynamic and can change after a reconnect or after some time. An address that never changes is called a static IP and usually has to be requested from the provider.

Why does this page show an IPv6 address?

Your connection supports IPv6 and your browser prefers it. You most likely have an IPv4 address too, possibly shared with other customers; websites that only support IPv4 see that one.

Is it safe to share my IP address?

Sharing it, for example with a support team or a game server admin, is generally harmless: every site you visit sees it anyway. What matters is not exposing services on your connection without a password and updates, because an open port can be reached by anyone who knows the address.