[Linux] How to find your public IP by using the console?

The easiest way to find your public IP from the console is by executing this command.

curl ifconfig.me

Another method is to run this command instead.

wget -q -O checkip.dyndns.org|sed -e s/.*Current IP Address: // -e s/<.*$//

ADD A COMMENT: