How to get public IP from shell

curl https://ipinfo.io/ip
Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp