Cloud Platform/AWS
ifconfig
case 1)
curl http://169.254.169.254/latest/meta-data/public-ipv4
case 2)
curl ifconfig.me