CLI examples:
$ curl ipaddress.be 44.200.30.73 $ http -b ipaddress.be 44.200.30.73 $ wget -qO- ipaddress.be 44.200.30.73 $ fetch -qo- http://ipaddress.be 44.200.30.73
Country lookup:
$ http ipaddress.be/country United States
JSON output:
$ http ipaddress.be/json { "country": "United States", "hostname": "ec2-44-200-30-73.compute-1.amazonaws.com", "ip": "44.200.30.73" } # or set Accept header: # http ipaddress.be Accept:application/json
Testing port connectivity:
$ http ipaddress.be/port/8080 { "ip": "44.200.30.73", "port": 8080, "reachable": false }