几个网址

样例

ip-api.com

1
curl 'http://ip-api.com/json/?lang=zh-CN'

返回结果:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"status": "success",
"country": "德国",
"countryCode": "DE",
"region": "HE",
"regionName": "Hesse",
"city": "法兰克福",
"zip": "60313",
"lat": 50.1188,
"lon": 8.6843,
"timezone": "Europe/Berlin",
"isp": "Linode, LLC",
"org": "Linode, LLC",
"as": "AS63949 Linode, LLC",
"query": "192.46.239.172"
}

ipecho.net

1
curl ipecho.net/plain

返回结果:

1
168.63.213.70

ipinfo.io

1
curl ipinfo.io

返回结果:

1
2
3
4
5
6
7
8
9
10
{
"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

1
curl cip.cc

返回结果:

1
2
3
4
5
6
7
8
9
IP  : 111.30.233.219
地址 : 中国 天津
运营商 : 移动

数据二 : 天津市 | 移动

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

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

myip.ipip.net

1
curl myip.ipip.net

返回结果:

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

ifconfig.me

1
curl ifconfig.me
1
111.30.233.219

members.3322.org/dyndns/getip

1
curl members.3322.org/dyndns/getip
1
111.30.233.219

作者:舌尖上的大胖
链接:https://www.jianshu.com/p/09363560a833