What Is My Public IP Address

See the public IP address the internet sees for you, then copy a ready-made rule to allowlist it in your firewall, web server, ModSecurity or an AWS security group.

🔒 Your browser asks Cloudflare, which hosts this site, what address your request came from. The tool shows it to you and doesn't store it.

Your public IP
Checking...


How to use it

  1. Open the page. Your public IP appears at the top straight away.
  2. Copy it, or pick the kind of rule you need under Allowlist this address.
  3. Paste the rule into your config and reload the service.

Public IP or private IP

Your computer usually has a private address such as 192.168.1.20 or 10.0.0.5. That one only exists on your home or office network. When you reach the internet, your router swaps it for the public address your provider gave you. That public address is what servers, firewalls and logs see, so it is the one you allowlist.

IPv4 or IPv6

If your connection has IPv6, your browser often prefers it, and this page shows an IPv6 address. Servers that only listen on IPv4 will see your IPv4 address instead. If a rule doesn’t seem to work, check which one the server’s logs record and allowlist that.

FAQ

My IP keeps changing. Will the rule stop working? Most home connections get a dynamic address that changes now and then, often when the router restarts. Check again here if you suddenly get blocked. For anything permanent, a VPN such as Tailscale or WireGuard into the network beats allowlisting a home IP.

I’m on a VPN. Which address is this? The VPN’s exit address, because that is what the internet sees. Turn the VPN off if you want your own connection’s address.

Is it safe to allowlist my IP? It is far safer than opening a service to everyone. Just remember the address may later belong to someone else in your provider’s pool, so remove old rules you no longer need.