I need to find my external IP address from a bash script. At the moment I use this function:
myip () {
lwp-request -o text checkip.dyndns.org | awk '{ print $NF }'
}
But it depends on perl-libwww
, perl-html-format
, perl-html-tree
installed. What other ways can I get my external IP?