我需要从 shell 脚本中找到我的外部 IP 地址。目前我使用这个功能:
myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' }
但这取决于perl-libwww, perl-html-format,perl-html-tree已安装。我可以通过哪些其他方式获得我的外部 IP?
perl-libwww
perl-html-format
perl-html-tree
linux ip shell-script
ip ×1
linux ×1
shell-script ×1