What is my IP address?

216.73.216.46

Multiple command line HTTP clients are supported, including curl, httpie, wget, and fetch.

CLI examples

$ curl ipv4.encryption.io
216.73.216.46

$ http -b ipv4.encryption.io
216.73.216.46

$ wget -qO- ipv4.encryption.io
216.73.216.46

$ fetch -qo- https://ipv4.encryption.io
216.73.216.46

$ bat -print=b ipv4.encryption.io/ip
216.73.216.46

Country lookup

$ http ipv4.encryption.io/country
United States

$ http ipv4.encryption.io/country-iso
US

City lookup

$ http ipv4.encryption.io/city
Palmdale

JSON output

$ http ipv4.encryption.io/json
{
  "ip": "216.73.216.46",
  "ip_decimal": 3628718126,
  "country": "United States",
  "country_eu": false,
  "country_iso": "US",
  "city": "Palmdale",
  "latitude": 34.5705,
  "longitude": -118.029,
  "asn": "AS20001",
  "asn_org": "TWC-20001-PACWEST",
  "user_agent": {
    "product": "Mozilla",
    "version": "5.0",
    "comment": "AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
    "raw_value": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
  }
}

Setting the Accept: application/json header also works as expected.

Plain output

Always returns the IP address including a trailing newline, regardless of user agent.

$ http ipv4.encryption.io/ip
216.73.216.46

Port testing

$ http ipv4.encryption.io/port/8080
{
  "ip": "216.73.216.46",
  "port": 8080,
  "reachable": false
}

Map