What is my IP address?

54.161.130.145

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

CLI examples:

$ curl ipaddress.be
54.161.130.145

$ http -b ipaddress.be
54.161.130.145

$ wget -qO- ipaddress.be
54.161.130.145

$ fetch -qo- http://ipaddress.be
54.161.130.145

Country lookup:

$ http ipaddress.be/country
United States

JSON output:

$ http ipaddress.be/json
{ 
    "country": "United States",
    "hostname": "ec2-54-161-130-145.compute-1.amazonaws.com",
    "ip": "54.161.130.145"
}

# or set Accept header:
# http ipaddress.be Accept:application/json

Testing port connectivity:

$ http ipaddress.be/port/8080
{
    "ip": "54.161.130.145",
    "port": 8080,
    "reachable": false
}