美文网首页命令行工具
cURL 查询公网出口 IP

cURL 查询公网出口 IP

作者: 舌尖上的大胖 | 来源:发表于2020-03-17 07:15 被阅读0次

几个网址

样例

  • ipinfo.io
$ curl ipinfo.io

返回结果:

{
  "ip": "111.30.233.219",
  "city": "Tianjin",
  "region": "Tianjin",
  "country": "CN",
  "loc": "39.1422,117.1767",
  "org": "AS38019 tianjin Mobile Communication Company Limited",
  "timezone": "Asia/Shanghai",
  "readme": "https://ipinfo.io/missingauth"
}

  • cip.cc
$ curl cip.cc

返回结果:

IP  : 111.30.233.219
地址  : 中国  天津
运营商 : 移动

数据二 : 天津市 | 移动

数据三 : 中国天津天津 | 移动

URL : http://www.cip.cc/111.30.233.219

  • myip.ipip.net
$ curl myip.ipip.net

返回结果:

当前 IP:111.30.233.219  来自于:中国 天津 天津  移动

  • ifconfig.me
$ curl ifconfig.me
111.30.233.219

  • members.3322.org/dyndns/getip
$ curl members.3322.org/dyndns/getip

返回结果:

111.30.233.219

(完)

相关文章

网友评论

    本文标题:cURL 查询公网出口 IP

    本文链接:https://www.haomeiwen.com/subject/adczehtx.html