curl查询IP地址,经纬度

curl ipinfo.io

C:\Users\jeff.xie>curl ipinfo.io
{
  "ip": "210.177.217.25",
  "hostname": "210-177-217-025.static.imsbiz.com",
  "city": "Hong Kong",
  "region": "Central and Western",
  "country": "HK",
  "loc": "22.2783,114.1747",
  "org": "AS4515 HKT Limited",
  "timezone": "Asia/Hong_Kong",
  "readme": "https://ipinfo.io/missingauth"
}
C:\Users\jeff.xie>
C:\Users\jeff.xie>
C:\Users\jeff.xie>
C:\Users\jeff.xie>curl ipinfo.io
{
  "ip": "121.15.131.210",
  "city": "Shenzhen",
  "region": "Guangdong",
  "country": "CN",
  "loc": "22.5455,114.0683",
  "org": "AS4134 CHINANET-BACKBONE",
  "timezone": "Asia/Shanghai",
  "readme": "https://ipinfo.io/missingauth"
}
C:\Users\jeff.xie>

你可能感兴趣的:(服务器,linux,运维)