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