How to find your public IP by using the console, on Linux

How to find your public IP by using the console, on Linux

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: