Linux get external IP from command line.
Since most of the ‘what is my ip’ address sites have been making constant changes to prevent wget and curl access, essentially so they can drive traffic to their site for higher ad revenue, I needed an alternative.
So without further adieu, feel free to curl, wget the following address to get your external IP address from the CLI.
curl vigeek.net/extip.php