[Linux] How to get Your Public IP Address

# curl ipinfo.io/ip

# curl ifconfig.co

# curl ifconfig.me

# curl icanhazip.com

# curl ipecho.net/plain;echo

# wget -qO- http://ipecho.net/plain | xargs echo

# wget -qO- http://ipecho.net/plain ; echo

# wget -qO – icanhazip.com

# hostname -I


 

Reference :
tecadmin.net – 5 Commands to Get Public IP using Linux Terminal