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.
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.
@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}\''