查看外网 IP 地址
前言
由于某些需要,我们需要获取外网 IP ,下面是个人收集的获取 公网 IP 的一些网站。如果你需要更好的服务或需要调整排列顺序,欢迎联系我。
IP 服务
自动获取 IP
- 
1 curl https://api.myip.com/ # JOSN API 
- 
1 curl https://ifconfig.me 
- 
1 
 2
 3curl 'https://api.ipify.org?format=json' # IPv4 
 or
 curl 'https://api6.ipify.org?format=json' # IPv6
- 
1 curl https://ip.cn 
- 
1 
 2
 3curl cip.cc 
 or
 curl ip.cip.cc # 纯 IP
- 
1 curl http://myip.ipip.net/ 
- api.getmyip.me 支持 HTTP 和 HTTPS 访问,可查看是否使用透明代理服务。 - 1 
 2
 3- curl http://api.getmyip.me 
 or
 curl https://api.getmyip.me
- 
1 
 2
 3curl https://api.ip.sb/ip #纯 IP 
 or
 curl http://api.ip.sb/ip #纯 IP
- 
1 curl ifconfig.co #纯 IP 
- members.3322.org/dyndns/getip,由国内某个云厂商提供。 - 1 - curl http://members.3322.org/dyndns/getip # 纯 IP 
查询 IP 信息
将 $IP 替换成所要查询信息的 IP 地址
文档信息
- 版权声明:自由转载-保持署名-非商用-非衍生 ( CC BY-NC-ND 4.0 )
