What Is My IP Address?
Whitelist your IP in seconds. Detect your public IP address and get instant whitelist configs for AWS Security Groups, MongoDB Atlas, GCP Firewall, iptables, UFW, and nginx.
# Authorize your IP in a Security Group aws ec2 authorize-security-group-ingress \ --group-id sg-xxxxxxxxxxxxxxxxx \ --protocol tcp \ --port 443 \ --cidr Detecting…/32
resource "aws_security_group_rule" "dev_ip_access" { type = "ingress" from_port = 443 to_port = 443 protocol = "tcp" cidr_blocks = [Detecting…/32] security_group_id = "sg-xxxxxxxxxxxxxxxxx" description = "Dev IP — ipwhitelist.dev" }
Type: Custom TCP · Port: 443 · Source: Detecting…/32
Step-by-step guide: allow your IP in an AWS security group
Detecting…/32 # Paste in Atlas → Network Access → Add IP
# brew install mongodb-atlas atlas accessLists create \ --projectId YOUR_PROJECT_ID \ --cidr Detecting…/32 \ --comment "Dev IP — ipwhitelist.dev"
{
"ipAddress": Detecting…,
"comment": "Dev IP — ipwhitelist.dev"
}gcloud compute firewall-rules create allow-dev-ip \ --allow=tcp:443 \ --source-ranges=Detecting…/32 \ --description="Dev IP — ipwhitelist.dev" \ --project=YOUR_PROJECT_ID
gcloud sql instances patch YOUR_INSTANCE \ --authorized-networks=Detecting…/32
sudo iptables -I INPUT -s Detecting… -p tcp --dport 443 -j ACCEPT sudo netfilter-persistent save
sudo ufw allow from Detecting… to any port 443 sudo ufw reload
location /admin {
allow Detecting…;
deny all;
}# Plain IP Detecting… # CIDR /32 (single host) Detecting…/32 # JSON { "ip": Detecting…, "mask": "255.255.255.255" } # curl test curl -v https://api.example.com/ 2>&1 | grep "Connected"
How to find your public IP address
Your public IP address is the unique identifier assigned by your Internet Service Provider (ISP) to your internet connection. Unlike your local or private IP address (typically in the 192.168.x.x or 10.x.x.x range), your public IP is visible to all servers and services you connect to on the internet.
IPWhitelist.dev detects your public IP instantly using two independent sources — ipify.org and ipapi.co — for maximum accuracy and reliability. If you prefer the terminal, these commands return the same address:
| Environment | Command |
|---|---|
| macOS / Linux | curl -4 https://api.ipify.org (add -6 for your IPv6 address) |
| Windows PowerShell | (Invoke-WebRequest -Uri "https://api.ipify.org").Content |
| Any OS, via DNS | dig +short myip.opendns.com @resolver1.opendns.com |
What is CIDR notation and why does it matter?
CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its associated network mask. For a single IP address, the CIDR notation appends /32, meaning only that exact address is included. When whitelisting your IP in AWS Security Groups, MongoDB Atlas, or GCP Firewall rules, you must provide the CIDR format — for example, 203.0.113.42/32.
The prefixes you will meet most often when writing allow lists:
| CIDR | Addresses | Typical use |
|---|---|---|
| /32 | 1 | A single machine — your laptop, a CI runner, a bastion host. The right default for a personal whitelist. |
| /29 | 8 | A small static block assigned by an ISP to a business connection. |
| /24 | 256 | An office network or a VPN exit range. Only appropriate when the whole range belongs to you. |
| /16 | 65,536 | Large corporate or cloud ranges. Rarely appropriate for an allow list. |
| 0.0.0.0/0 | all IPv4 | Open to the entire internet — the opposite of a whitelist. Cloud consoles warn about it for a reason. |
Whitelisted your IP but still can't connect? Check these first
- You whitelisted a private IP. Addresses such as 192.168.1.20 or 10.0.0.5 never leave your local network. Use the public address shown at the top of this page.
- Your IP changed. Dynamic IPs rotate after a router restart or when you move from Wi‑Fi to mobile data. Reload this page and compare it with the rule you created.
- You are behind CGNAT or a VPN. Your traffic may leave through a different address than you expect — sometimes through several. The ISP / AS field above shows who owns your exit IP.
- Wrong port or protocol. A rule for TCP 443 does nothing for SSH on TCP 22 or PostgreSQL on 5432. Confirm the port with the port checker.
- The rule is in the wrong layer. On AWS the security group must be attached to the instance and the subnet's network ACL must allow the traffic. In MongoDB Atlas, access lists belong to the project, not to an individual cluster.
- IPv6 is being used first. On dual-stack networks some services are reached over IPv6, so an IPv4 rule is never consulted. Check the IPv6 detector and whitelist both addresses.
What is the difference between a public and private IP address?
Your public IP address is the address assigned by your ISP that identifies your network on the internet. It is what websites, servers, and cloud services like AWS Security Groups and MongoDB Atlas see when you connect. Your private IP address, by contrast, is used only within your local network (e.g. 192.168.1.x) and is not visible externally.
When you add your IP to a cloud firewall or security group, you always need to use your public IP address — not your private one. This tool detects your public IP automatically so you can whitelist it in one click without any confusion.
What is the difference between a dynamic and static IP address?
Most home internet connections use a dynamic IP address — meaning your ISP can change it periodically, typically when you restart your router. This is the most common reason developers need to update their AWS Security Groups or MongoDB Atlas access lists frequently.
A static IP address stays the same indefinitely and is typically used by servers and businesses. If you find yourself whitelisting your IP repeatedly, your ISP may offer a static IP upgrade, or you can use a VPN with a dedicated IP as a more permanent solution.
How to hide or change your public IP address
There are several ways to mask your public IP: a VPN (Virtual Private Network) routes your traffic through a server in another location, giving you that server's IP. A proxy server works similarly but typically without encryption. Tor routes traffic through multiple relays for maximum anonymity.
For developers who need a stable IP for cloud whitelisting, a VPN with a dedicated static IP (such as those offered by Mullvad or ProtonVPN) is the most practical solution — you whitelist that IP once and never need to update it again.