whats my ip command line linux 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: linux check ip address command
ifconfig -a
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175
ifconfig -a