Show your external IP address on the command line:

`# curl -s https://ipinfo.io | jq -r .ip`
`1.2.3.4`

I use this a lot.

#cli #bash #curl

IPinfo | The Trusted IP Data Provider for Developers & Enterprises

IPinfo delivers fast, accurate, and reliable IP data to power fraud detection, geolocation, analytics, and more. Trusted by over 500,000 developers.

@tdp_org Well, that sure is a lot better than what I've currently got ddclient configured to use:

use=cmd, cmd='curl --silent --interface enp130s0 http\://checkip.dyndns.com/ | perl -ne \'chomp; if (s/.*\\b([1-9][0-9]*\\.[1-9][0-9]*\\.[1-9][0-9]*\\.[1-9][0-9]*)\\b.*/$1/){print;exit}\''

@jik @tdp_org

any added value over the old
curl icanhazip.com
trick?