curl ifconfig alternative
Run one curl command to grab IPv4 or IPv6 from nossl.sh with nothing but plain text.
Run one curl command to grab IPv4 or IPv6 from nossl.sh with nothing but plain text.
Live snapshot
IP address
IPv6 address
IPv6 address
🇺🇸 United States
Headers
| Header | Value |
|---|---|
| accept | */* |
| accept-encoding | gzip, br, zstd, deflate |
| cache-control | max-age=259200 |
| connection | close |
| host | nossl.sh |
| user-agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| via | 1.1 squid-proxy-5b5d847c96-788gb (squid/6.13) |
| x-forwarded-for | 216.73.216.63 |
Use curl http://nossl.sh for IPv4 and curl http://v6.nossl.sh for IPv6. Each responds with just the address and a trailing newline.
Need more detail? Hit /api/request-info with curl to get JSON headers alongside your IP.
nossl.sh is intentionally plain HTTP so captive portals do not block it, while still exposing both public IP addresses.
Use the v6 endpoint for IPv6-only output; the main host stays on IPv4 so there is no ambiguity.
HTTPS is available, but the HTTP endpoints avoid captive portal issues and keep the commands shorter.
Open the official Apple CNA page to force the captive assistant on iOS and macOS devices.
Open Apple captive portalUse the Android connectivity check URL that devices call before presenting the portal dialog.
Open Android captive portal