linux 8 display public ip address code example
Example 1: get public ip linux
curl ifconfig.me
Example 2: how to find public ip address in linux
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175
curl ifconfig.me
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175