DDNS 使用 myip.ipip.net 获取公网 IP ,最近阿里云一直提示公网 IP 被改成 127.0.0.1 ,有同事也有同样的情况,珠海电信。
|
1
ipip.net 经常(感觉是故意)不给用,换别的吧,比如 ifconfig.me
|
|
huaesApr 22, 2022
2
做了几次路由追踪就不给显示 IP 归属地直接星星了,它就是故意的
|
|
3
也可以自己部署一个腾讯云云函数,支持 plain text 、json 和 二进制:
https://gist.github.com/yin1999/4dc02585324ecb165d25475f08579971 |
|
LiumanApr 22, 2022
5
北京联通,我的也抽风了,一会公网 IP 一会 127.0.0.1 ,我现在换成了 https://myip4.ipip.net
|
|
qa2080639Apr 22, 2022 via Android
6
昨晚一直抽风,再之前是返回梯子 IP ,应该是服务器 ip 跳到了海外。已经换了其他接口
|
|
7
|
|
ersicApr 22, 2022
8
前天想查一下 ip 归属地,发现还必须要登陆。
|
|
ClericPyApr 22, 2022
9
查 ip 还是别用免费的这玩意了...
之前请求次数稍微多了点(三秒一次, 一共几十次), 直接封我公司 ip 了, 而且有时候不稳定. 刚才我这里电脑打开第一次失败, 刷新才成功. 不过准确度来说貌似还挺准 |
|
pagxirApr 22, 2022 via Android
10
|
|
fe619742721Apr 22, 2022
11
|
|
iheheApr 22, 2022 via iPhone
12
curl -L www.uc.cn/ip
|
|
acbotApr 22, 2022
13
这个网站优势就是 IP 库比较准确,缺点就是现在不给钱不让你好好用。所以现在用得很少了。
|
|
wonderfulcxmApr 22, 2022 via iPhone
15
@felixcode 国内访问会转到 cf 盾
|
|
16
|
|
aulayApr 22, 2022 via Android
18
有人付费的产品才能活下去
|
|
lmaqApr 22, 2022
20
|
|
LukeChienApr 22, 2022 via Android
21
这个也可以: checkip.amazonaws.com
|
|
SekaiApr 22, 2022
22
|
|
NSAgoldApr 22, 2022
24
|
|
dream7758522Apr 22, 2022 via Android
25
|
|
Unclev21xApr 22, 2022
26
|
|
27
前段时间收集的,也是为了配合 ddns 判断 ip
希望全部都能正常使用 #ip curl eth0.me curl -4 ip.sb curl api-ipv4.ip.sb curl -4 icanhazip.com curl -4 ifocnfig.co curl ip.3322.org curl ip.xdty.org curl checkip.amazonaws.com curl -4 ident.me curl v4.ident.me curl api.ipify.org curl l2.io/ip curl -4 ip.tyk.nu curl -4 wgetip.com curl whatismyip.akamai.com curl -4 bot.whatismyipaddress.com curl ipv4.lafibre.info/ip.php curl myip.dnsomatic.com curl ifconfig.me curl ipinfo.io/ip curl ipecho.net/plain curl https://domains.google.com/checkip |
|
jacyApr 22, 2022
28
只要 ip 不要归属地,还不如自己搭一个靠谱
|
|
aruApr 22, 2022
31
|
|
timothyyeApr 22, 2022
32
|
|
cattyhouseApr 22, 2022
33
|
|
cattyhouseApr 22, 2022
34
valid_ip_opts="([0-9]{1,3}[\.]){3}[0-9]{1,3}"
for url in "${source_addr[@]}" ; do new_ipaddr=$(curl -4qsf --retry 1 -m10 --connect-timeout 5 "$url" | grep -Eo -m1 "$valid_ip_opts") && break ; done |
|
timothyyeApr 22, 2022
36
我的开源工具这里也收集了几个能用的获取 IP 的 API: https://github.com/TimothyYe/godns#recommended-apis
|
|
YadominApr 22, 2022 via Android
37
|
|
38
@timothyye #36 用 https://api-ipv4.ip.sb/ip 记得要带个自定义 UA 哦
|
|
42
@timothyye #41 这些 UA 是被屏蔽的
scrapy|curl|httpclient|wget|WindowsPowerShell|PowerShell|Go-http-client|python-requests|Dart 你换成你项目名字就行了 |
|
someonesnoneApr 22, 2022 via iPhone
43
|
|
alamak76Apr 23, 2022
45
可以用 ipaddress.my
|
|
flynajApr 23, 2022
46
|
|
macyApr 24, 2022
47
我的前两天也是这样,换成我自己的服务了🤣,免费的还是不行
|
|
zed1018Apr 24, 2022
48
dig +short myip.opendns.com @resolver1.opendns.com.
|
|
AndrueApr 24, 2022
49
早年刚开的时候随便用,后来不仅小公司白嫖当付费服务,甚至干这个的同行都开始批量盗库搞得只能采用严格审核
|
|
missdeerApr 25, 2022
50
|
|
AckurdeeveMay 1, 2022 via Android
56
https://api.myip.com/ 我现在用这个代替了
|
|
canyue7897May 13, 2022 via iPhone
57
为啥不直接解析路由器?路由器拨号的公网 IP 应该是比较准确的。
|
|
alamak76Jan 20, 2024
58
|