What is my IP address?

216.73.216.242

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

CLI examples

$ curl ip.pclinfo.com
216.73.216.242

$ http -b ip.pclinfo.com
216.73.216.242

$ wget -qO- ip.pclinfo.com
216.73.216.242

$ fetch -qo- https://ip.pclinfo.com
216.73.216.242

$ bat -print=b ip.pclinfo.com/ip
216.73.216.242

Country lookup

$ http ip.pclinfo.com/country
United States

$ http ip.pclinfo.com/country-iso
US

City lookup

$ http ip.pclinfo.com/city
Los Angeles

ASN lookup

$ http ip.pclinfo.com/asn
AS20001

Looks like you're with TWC-20001-PACWEST

JSON output

$ http ip.pclinfo.com/json
{
  "ip": "216.73.216.242",
  "ip_decimal": 3628718322,
  "country": "United States",
  "country_iso": "US",
  "country_eu": false,
  "region_name": "California",
  "region_code": "CA",
  "metro_code": 803,
  "zip_code": "90003",
  "city": "Los Angeles",
  "latitude": 33.9576,
  "longitude": -118.267,
  "time_zone": "America/Los_Angeles",
  "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 ip.pclinfo.com/ip
216.73.216.242

Port testing

$ http ip.pclinfo.com/port/8080
{
  "ip": "216.73.216.242",
  "port": 8080,
  "reachable": false
}

Map