What is my IP address?

64:ff9b::d849:d873

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

This service is accessible over dual stack, IPv6-only and IPv4-only.

CLI examples

$ curl four.ip.n7r.de
64:ff9b::d849:d873

$ http -b four.ip.n7r.de
64:ff9b::d849:d873

$ wget -qO- four.ip.n7r.de
64:ff9b::d849:d873

$ fetch -qo- https://four.ip.n7r.de
64:ff9b::d849:d873

$ bat -print=b four.ip.n7r.de/ip
64:ff9b::d849:d873

JSON output

$ http four.ip.n7r.de/json
{
  "ip": "64:ff9b::d849:d873",
  "ip_decimal": 524413980667603649783483184940963955,
  "country_eu": false,
  "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 four.ip.n7r.de/ip
64:ff9b::d849:d873