venid

一个是:

curl  ifconfig.me

 

另一个是:

curl  ipinfo.io

这个输出的信息很丰富,如城市,地区,国家,经纬度等都能显示,如下面:

{
  "ip": "223.68.142.242",
  "hostname": "No Hostname",
  "city": null,
  "region": null,
  "country": "CN",
  "loc": "35.0000,105.0000",
  "org": "AS56046 China Mobile communications corporation"
}

另外如果查询的时候在ipinfo.io后加上特定ip地址,输出的是这个ip的信息,eg:

curl  ipinfo.io/202.65.246.80

则输出:

{
  "ip": "202.65.246.80",
  "hostname": "No Hostname",
  "city": "Singapore",
  "region": "00",
  "country": "SG",
  "loc": "1.2931,103.8558",
  "org": "AS4773 MobileOne Ltd. Mobile/Internet Service Provider Singapore"
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2021-07-02
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-09-18
  • 2021-07-15
  • 2021-09-10
相关资源
相似解决方案