CURL查询公网IP

Ubuntu和Windows下都可使用CURL命令来获取公网IP:

eric@ubuntu:~$ curl ip.sb
111.112.x.x

还有一些其它的网站可以查询:

curl ip.sb
curl ipinfo.io (慢)
curl ip.cn
curl cip.cc
curl myip.ipip.net
curl ifconfig.io
curl httpbin.org/ip
curl members.3322.org/dyndns/getip
curl icanhazip.com
curl www.trackip.net/ip

 

©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页