<!-- https://www.gatehills.com/en/guides/my-ip -->
# How to find your public IP address

**In short**

- The “My IP address” page on Gatehills shows the public IP address your connection uses on the internet.
- Open it from the site menu: “Domains” → “My IP address”.
- You see the version (IPv4 or IPv6) and the country of your network, and you can copy the address with one click.
- It is free, no sign-in is needed and the address is not stored.

**What is my IP address?** It is the public IP address that identifies your internet connection. The Gatehills page **My IP address** shows it in large type, with its version (IPv4 or IPv6) and the country of your network. It is free, needs no account and does not store the address.

You need it when you want to point a domain to a server at home or in the office, when a service asks you to add your IP to an **allow-list**, or when support asks which address you connect from.

![The My IP address page on Gatehills showing the address 203.0.113.42, the Copy button, the version IPv4 and the country of the network](https://www.gatehills.com/media/393-430e663e3e36.webp)
*1. your public IP address · 2. Copy · 3. version and country of your network*

## Find and copy your IP address

1. **Open the page** In the site menu open “Domains” and choose “My IP address”. The page is also linked at the bottom of every page.
2. **Read your address** Under “Your public IP address” (1) you see the address in large type, for example “203.0.113.42” (IPv4) or “2001:db8::1” (IPv6).
3. **Copy it** Click “Copy” (2). The button briefly shows “Copied” and the address is ready to paste.
4. **Check version and country** Below (3) you see the “Version” (IPv4 or IPv6) and the “Country of your network”. If the country cannot be determined, it says not detected.

## What you can use it for

- **Point a domain to your own server**: add an **A** record with an IPv4 address or an **AAAA** record with an IPv6 address. See [manage DNS records](/en/guides/dns-records).
- **Restrict an API key**: in **API keys** you can allow only some addresses in **Allowed IP addresses**. See [API keys](/en/guides/api-keys).
- **Firewalls and remote access**: many routers, servers and online services let only listed addresses in.
- **Support**: our team may ask for your IP to understand a connection problem.

## What is a public IP address?

A **public IP address** is the address the internet sees for your connection. Your internet provider assigns it to your router.

All the devices in your home or office share this one address. Inside the network each device also has a **private address**, such as 192.168.1.20. Private ranges are defined in [RFC 1918](https://www.rfc-editor.org/rfc/rfc1918) and cannot be reached from the internet. That is why your computer shows a different number from the one on this page.

## IPv4 or IPv6: what is the difference?

**IPv4 and IPv6 compared**

|  | IPv4 | IPv6 |
|---|---|---|
| Format | Four numbers from 0 to 255 separated by dots | Eight groups of hexadecimal digits separated by colons |
| Example | 203.0.113.42 | 2001:db8::1 |
| DNS record for a domain | A record | AAAA record |
| How the page shows it | As it is | In the short standard form: leading zeros removed, a run of zero groups written as “::” |

The short IPv6 form follows the standard notation, so you can paste it directly into an AAAA record. If your connection has both versions, your device picks one for each visit.

## Why does my IP address change?

Most home and mobile connections have a **dynamic** address. The provider can assign a new one when the router restarts or after some time. Business lines often have a **static** address that does not change.

If you run a server at home and the address changes, a fixed A record stops working. Use [dynamic DNS](/en/guides/dynamic-dns) so the domain follows the new address. Some providers also share one public address among many customers (carrier-grade NAT). In that case a home server cannot be reached at that address without help from the provider.

### How does the page find your address?

The page reads the address your browser uses to connect to our server. It makes no call to external services and does not log or save the address. It also tells browsers and proxies not to cache the page, so every visitor sees only their own address. The country is estimated from the network, not from the location of your device.

> **Common mistakes**
>
> - **Your IP changes**: most home connections have a dynamic address that changes when the router restarts. For a home server use [dynamic DNS](/en/guides/dynamic-dns) instead of a fixed A record.
> - **VPN or proxy turned on**: the page shows the address of the VPN or proxy, not yours. Turn it off if you need your real address.
> - **IPv6 in an A record**: an A record takes only IPv4 addresses; an IPv6 address goes in an AAAA record.
> - **Private address**: if the page says *This is a private or local address*, you are on an internal network and the internet sees a different address.
> - **Address of another device**: the page shows the IP of the connection you are using now. Open it from the network you want to check.

### Why is this IP different from the one on my computer?

Devices at home or in the office have private addresses such as 192.168.x.x. The router translates them into one public address, the one shown on this page.

### Why do I see IPv6 and not IPv4 (or the other way round)?

The page shows the address your connection used for this visit. Many connections have both; your device chooses one, often IPv6 when it is available.

### Does Gatehills store my IP?

No. The page does not save your IP, does not send it to external services and is never cached, so each visitor only sees their own address.

### Does my IP show my exact location?

No. At most it points to the country or the area of your internet provider, and often not even that precisely.

### Is it free?

Yes, the page is free and you do not need an account.

**Related guides**

- [Manage the DNS records of your domain](/en/guides/dns-records)
- [Dynamic DNS for a changing IP address](/en/guides/dynamic-dns)
- [API keys](/en/guides/api-keys)
- [Look up a domain in WHOIS / RDAP](/en/guides/whois-lookup)

[Show my IP address](https://www.gatehills.com/en/my-ip)
