可以直接输入如下几个命令:
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'

转载于:https://www.cnblogs.com/yanmou/p/10788698.html

Logo

更多推荐