🌐My IP Address 🔌Port Checker 🔍DNS Lookup 📋WHOIS Lookup 🔒SSL Checker 🗺️IP Location Map 📡HTTP Headers ⚡Latency Test 🖥️User Agent 🔢IPv6 Detector
Live Detection · No Signup

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.

ipwhitelist.dev — live detection
Secure · No logs
Your Public IP Address
Detecting…
CIDR:—
📍 City
—
🌍 Country
—
📡 ISP / AS
—
⏱ Latency
—
IP Fingerprint
Checking…
–
Public IPv4 range
–
Datacenter / cloud range
–
Proxy / VPN flag
Based on public ASN data (ipapi.co) and the proxy flag from freeipapi.com — not a blocklist or abuse-score lookup.
1
AWS CLI — Security Group Ingress
Add your IP to an EC2 Security Group inbound rule
AWS CLI
# Authorize your IP in a Security Group
aws ec2 authorize-security-group-ingress \
  --group-id sg-xxxxxxxxxxxxxxxxx \
  --protocol tcp \
  --port 443 \
  --cidr Detecting…/32
2
Terraform Resource Block
Drop into your .tf file — IaC ready
Terraform HCL
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"
}
3
AWS Console Path
EC2 → Security Groups → Your Group → Inbound Rules → Edit → Add Rule
Type: Custom TCP · Port: 443 · Source: Detecting…/32
Step-by-step guide: allow your IP in an AWS security group
1
CIDR for Atlas UI
Network Access → Add IP Address
CIDR
Detecting…/32   # Paste in Atlas → Network Access → Add IP
2
Atlas CLI
Atlas CLI
# brew install mongodb-atlas
atlas accessLists create \
  --projectId YOUR_PROJECT_ID \
  --cidr Detecting…/32 \
  --comment "Dev IP — ipwhitelist.dev"
3
JSON Payload
JSON
{
  "ipAddress": Detecting…,
  "comment":   "Dev IP — ipwhitelist.dev"
}
1
GCP Firewall Rule
gcloud
gcloud compute firewall-rules create allow-dev-ip \
  --allow=tcp:443 \
  --source-ranges=Detecting…/32 \
  --description="Dev IP — ipwhitelist.dev" \
  --project=YOUR_PROJECT_ID
2
Cloud SQL Authorized Network
gcloud
gcloud sql instances patch YOUR_INSTANCE \
  --authorized-networks=Detecting…/32
1
iptables
bash
sudo iptables -I INPUT -s Detecting… -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save
2
UFW
bash
sudo ufw allow from Detecting… to any port 443
sudo ufw reload
3
nginx allow directive
nginx.conf
location /admin {
    allow  Detecting…;
    deny   all;
}
1
All Formats at Once
All formats
# 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:

EnvironmentCommand
macOS / Linuxcurl -4 https://api.ipify.org (add -6 for your IPv6 address)
Windows PowerShell(Invoke-WebRequest -Uri "https://api.ipify.org").Content
Any OS, via DNSdig +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:

CIDRAddressesTypical use
/321A single machine — your laptop, a CI runner, a bastion host. The right default for a personal whitelist.
/298A small static block assigned by an ISP to a business connection.
/24256An office network or a VPN exit range. Only appropriate when the whole range belongs to you.
/1665,536Large corporate or cloud ranges. Rarely appropriate for an allow list.
0.0.0.0/0all IPv4Open 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Common questions about IP addresses

Your public IP is the address your ISP assigns to your internet connection — the one all servers on the internet see. Unlike your local IP (192.168.x.x), your public IP is globally unique. IPWhitelist.dev detects it in milliseconds with no setup required.
Go to EC2 → Security Groups → select your group → Inbound Rules → Edit → Add Rule. Set Type to Custom TCP, enter your port, and paste your IP in CIDR format (e.g. 203.0.113.42/32) as the source. IPWhitelist.dev generates the exact AWS CLI command and Terraform config above — just copy and run.
In MongoDB Atlas, go to Network Access → Add IP Address, then paste your CIDR notation from IPWhitelist.dev. Alternatively, use the Atlas CLI command generated above. Your IP must be whitelisted before any client can connect to your Atlas cluster.
Use /32 (a single address) unless you control the whole range. A wider prefix such as /24 lets 255 other addresses in — on a shared ISP or VPN range those belong to strangers. If your IP changes often, a dedicated static IP or a VPN with a fixed exit address is safer than widening the rule.
No. IP detection is done via client-side calls to public APIs (ipify.org, ipapi.co and freeipapi.com). We never proxy or log these requests — the site has no backend. Your IP address never touches our servers.
Most home and office ISPs assign dynamic IP addresses, meaning your public IP can change when your router reconnects, after a power cycle, or periodically based on your ISP's lease policy. If you rely on whitelisting for database or server access, you'll need to update your rules each time it changes — this page always shows your current address.
No. Your IP address reveals your approximate location — typically your city and ISP — but not your exact street address. The geolocation data shown here is based on where your ISP's infrastructure is located, which may differ from your physical location.
Copied!