linux find ipv4 code example
Example 1: how to find public ip address in linux
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175
Example 2: show ip address linux
$ hostname -I
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175
$ hostname -I