Field name Value
IP 35.175.180.108
Host Name [ec2-35-175-180-108.compute-1.amazonaws.com.]
Country Code US
Country Name United States
User Agent [CCBot/2.0 (https://commoncrawl.org/faq/)]
Accept [text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept Language [en-US,en;q=0.5]
Accept Encoding [gzip]
Via []
XForwarded For [35.175.180.108]
XForwarded Port []
XForwarded Proto [http]
Request URI /

Command Line Interface

How can I get my external IP address in bash?

Command Response
$ curl inet-ip.info35.175.180.108\n
$ curl inet-ip.info/ip35.175.180.108
$ curl inet-ip.info/json{"IP":"35.175.180.108","Hostname":"[ec2-35-175-180-108.compute-1.amazonaws.com.]","CountryCode":"US","CountryName":"United States","Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"AcceptEncoding":["gzip"],"AcceptLanguage":["en-US,en;q=0.5"],"UserAgent":["CCBot/2.0 (https://commoncrawl.org/faq/)"],"Via":null,"XForwardedFor":["35.175.180.108"],"XForwardedPort":null,"XForwardedProto":["http"],"RequestURI":"/"}
$ curl inet-ip.info/json/indentJSON pretty print
$ curl inet-ip.info/yamlYAML format
$ curl inet-ip.info/tomlTOML format