几种在Linux/window下查询外网IP的办法。
总结表
| 序号 | 网址 | ip | json | xml | 备注 |
|---|---|---|---|---|---|
| 1 | 【推荐】 https://ifconfig.me | curl ifconfig.me curl ifconfig.me/ip | curl ifconfig.me/all.json | curl ifconfig.me/all.xml | |
| 2 | 【推荐】 https://ipinfo.io | curl ipinfo.io/ip | curl ipinfo.io curl ipinfo.io/json | 官网文档 https://ipinfo.io/developers | |
| 3 | https://ipecho.net | curl ipecho.net/ip curl ipecho.net/plain | 跳转ipinfo.io | ||
| 4 | https://www.trackip.net | curl trackip.net/ip | curl trackip.net/json curl trackip.net/ip?json | ||
| 5 | https://icanhazip.com | curl icanhazip.com |
使用方法
通过客户端发请求,如浏览器/curl/postman/apipost/apifox/httpClient
curl ifconfig.me/ip

更多信息打开https://ifconfig.me

浙公网安备 33010602011771号