几个获取公网IP的网站

如果你固定了公网IP,那么这几个结果都是一样的,如果你是二级运营商,那么可能出口IP不一样,需要向运营商索要动态公网IP。

speedtest: https://api-v3.speedtest.cn/ip

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"code": 0,
"data": {
"country": "中国",
"province": "北京",
"city": "北京",
"district": "朝阳区",
"isp": "中国联通",
"lon": "120.333",
"lat": "45.34",
"countryCode": "CN",
"ip": "123.113.111.178",
"operator": "中国联通"
},
"msg": "ok"
}

IP.cn: https://ip.cn/api/index?type=0

1
2
3
4
5
6
7
{
"rs": 1,
"code": 0,
"address": "中国 北京 北京市 联通",
"ip": "123.113.111.178",
"isDomain": 0
}

IP API: http://ip-api.com/json/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{

"status": "success",
"country": "China",
"countryCode": "CN",
"region": "BJ",
"regionName": "Beijing",
"city": "Beijing",
"zip": "",
"lat": 23.22,
"lon": 21.222,
"timezone": "Asia/Shanghai",
"isp": "China Unicom Beijing Province Network",
"org": "",
"as": "AS4808 China Unicom Beijing Province Network",
"query": "xxxx"
}

https://checkip.amazonaws.com/
123.113.111.178

作者

Xu

发布于

2023-09-27

更新于

2024-06-21

许可协议

评论