nossl.sh

curl ifconfig alternative

curl ifconfig alternative

Run one curl command to grab IPv4 or IPv6 from nossl.sh with nothing but plain text.

Live snapshot

Connection report

IP address

🇺🇸 United States

🌐 Protocol
HTTP/1.0 · HTTP (no TLS)
📡 Ping
Measuring…
🧾 Headers captured
8
🕒 Generated
2025-12-22 11:04:29 UTC

Headers

Request headers

8 headers

One-line commands to copy

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.

  • curl http://nossl.sh
  • curl http://v6.nossl.sh
  • curl -H "Accept: application/json" http://nossl.sh/api/request-info

Why use this over ifconfig-style sites

nossl.sh is intentionally plain HTTP so captive portals do not block it, while still exposing both public IP addresses.

  • Lightweight response ideal for cron and scripts.
  • Dual-stack coverage with matching endpoints.
  • Shareable report if you need UI context later.

Does the curl output include IPv6?

Use the v6 endpoint for IPv6-only output; the main host stays on IPv4 so there is no ambiguity.

Can I force HTTPS instead?

HTTPS is available, but the HTTP endpoints avoid captive portal issues and keep the commands shorter.

Quick steps to trigger captive portals

Apple captive portal check

Open the official Apple CNA page to force the captive assistant on iOS and macOS devices.

Open Apple captive portal

Android captive portal check

Use the Android connectivity check URL that devices call before presenting the portal dialog.

Open Android captive portal