Linux服务器查看外网IP地址的命令

可以直接输入如下几个命令:

1、curl ifconfig.me
2、curl cip.cc
3、curl icanhazip.com
4、curl ident.me
5、curl ipecho.net/plain
6、curl whatismyip.akamai.com
7、curl tnx.nl/ip
8、curl myip.dnsomatic.com
9、curl ip.appspot.com
10、curl -s checkip.dyndns.org | sed 's/.*IP Address: \([0-9\.]*\).*/\1/g'

posted @ 2020-08-31 14:21  七月晓晓翁  阅读(9412)  评论(0编辑  收藏  举报