Why did my IP address change?
You allowlisted your IP yesterday, and today you're locked out. Don't blame Dig: most home and mobile IP addresses are on loan, not owned.
Dynamic addresses
Most internet providers give home customers a dynamic IP address. Your router borrows it from the provider for a set time (a "lease") and renews it automatically. Often you keep the same address for weeks or months, but it can change when:
- Your router or modem restarts, or loses power.
- The lease runs out while the router is offline.
- Your provider does maintenance or reorganizes its network.
- You swap routers (some providers tie the address to the router's hardware ID).
Phones and laptops on the move
Your public IP belongs to whatever network you're on right now. Walk from home Wi-Fi to cellular, and your public address changes to your carrier's. Open your laptop at a coffee shop, an airport, or the office, and you get that network's address. Mobile carriers also share addresses among many customers and may switch you to a different one in the middle of the day.
VPNs and privacy features
A VPN replaces your public IP with one of the VPN provider's, and many VPNs switch servers when you reconnect. Features like iCloud Private Relay do something similar in Safari. If GopherIP shows an address you don't recognize, a VPN or relay is the usual reason.
How to keep the same address
- Ask your provider for a static IP. Most business plans include one; many home providers sell it as an add-on.
- Use dynamic DNS. A dynamic DNS service gives your connection a name (like
myhouse.example.net) that updates automatically whenever your address changes. Great for home servers and cameras. - Allowlist a VPN or bastion instead. For servers, it's often easier to allowlist one fixed address you control, such as a small cloud server or a company VPN, and connect through that.
Checking from a script
Want to know when your address changes? A tiny script can check every so often and alert you:
NEW=$(curl -s gopherip.com)
OLD=$(cat ~/.myip 2>/dev/null)
[ "$NEW" != "$OLD" ] && echo "IP changed: $OLD -> $NEW" && echo "$NEW" > ~/.myip
Please check no more than once a minute. More on that in the command-line guide.