Field name Value
IP 54.80.211.135
Host Name [ec2-54-80-211-135.compute-1.amazonaws.com.]
Country Code US
Country Name United States
User Agent [CCBot/2.0 (http://commoncrawl.org/faq/)]
Accept [text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept Language []
Accept Encoding [x-gzip, gzip, deflate]
Via [1.1 vegur]
XForwarded For [54.80.211.135]
XForwarded Port [80]
XForwarded Proto [http]
Request URI /

Command Line Interface

How can I get my external IP address in bash?

Command Response
$ curl inet-ip.info54.80.211.135\n
$ curl inet-ip.info/ip54.80.211.135
$ curl inet-ip.info/json{"IP":"54.80.211.135","Hostname":"[ec2-54-80-211-135.compute-1.amazonaws.com.]","CountryCode":"US","CountryName":"United States","Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"AcceptEncoding":["x-gzip, gzip, deflate"],"AcceptLanguage":null,"UserAgent":["CCBot/2.0 (http://commoncrawl.org/faq/)"],"Via":["1.1 vegur"],"XForwardedFor":["54.80.211.135"],"XForwardedPort":["80"],"XForwardedProto":["http"],"RequestURI":"/"}
$ curl inet-ip.info/json/indentJSON pretty print
$ curl inet-ip.info/yamlYAML format
$ curl inet-ip.info/tomlTOML format