Method of Learning the Public IP of the Server with Linux Command Line
curl ifconfig.me
curl ipinfo.io/ip
curl api.ipify.org
dig +short myip.opendns.com @resolver1.opendns.com
host myip.opendns.com resolver1.opendns.com
curl ident.me
curl bot.whatismyipaddress.com
curl ipecho.net/plain
nslookup myip.opendns.com. resolver1.opendns.com