最近 myip.ipip.net 抽风了吗?

2022-04-22 12:20:48 +08:00
 DataSheep
DDNS 使用 myip.ipip.net 获取公网 IP ,最近阿里云一直提示公网 IP 被改成 127.0.0.1 ,有同事也有同样的情况,珠海电信。
7386 次点击
所在节点    宽带症候群
58 条回复
LukeChien
2022-04-22 15:32:22 +08:00
这个也可以: checkip.amazonaws.com
Sekai
2022-04-22 15:39:34 +08:00
bclerdx
2022-04-22 16:03:05 +08:00
@484A4B CURL 工具似乎没有在 Windows 平台上的吧?
NSAgold
2022-04-22 16:39:49 +08:00
curl ip.sb
或者 curl ip.ping0.cc (curl ip.ping0.cc/geo 也行)

@bclerdx win10 好像是 1607 之后就自带了
dream7758522
2022-04-22 16:49:30 +08:00
Unclev21x
2022-04-22 16:54:42 +08:00
initdrv
2022-04-22 17:14:56 +08:00
前段时间收集的,也是为了配合 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
jacy
2022-04-22 17:18:46 +08:00
只要 ip 不要归属地,还不如自己搭一个靠谱
bclerdx
2022-04-22 17:40:28 +08:00
@NSAgold Windows 7/8/8.1 呢?
NSAgold
2022-04-22 17:58:27 +08:00
@bclerdx 自己装 curl.exe 咯 都在这个论坛了这个不是问题
aru
2022-04-22 18:17:09 +08:00
@jacy 自己的会过期...
所以还是用公共知名的好用
ip.3322.net 已经服务了 10 多年了
timothyye
2022-04-22 18:26:01 +08:00
cattyhouse
2022-04-22 18:34:17 +08:00
cattyhouse
2022-04-22 18:39:01 +08:00
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
DataSheep
2022-04-22 20:28:09 +08:00
@aru 对,需要找一个稳定的公共接口。之前用这个用了 1 年多暂时没出现这种情况,突然昨天一直获取 IP 失败就发个贴问问大家。
timothyye
2022-04-22 20:54:36 +08:00
我的开源工具这里也收集了几个能用的获取 IP 的 API: https://github.com/TimothyYe/godns#recommended-apis
Yadomin
2022-04-22 21:19:20 +08:00
Showfom
2022-04-22 21:28:25 +08:00
@timothyye #36 用 https://api-ipv4.ip.sb/ip 记得要带个自定义 UA 哦
timothyye
2022-04-22 21:29:35 +08:00
@Showfom 怪不得上次有人提 issue ,我去把代码改一改
Showfom
2022-04-22 21:32:31 +08:00
@timothyye #39 因为滥用的人太多了,好多人直接想批量抓取所有 IP 信息,也是醉了= = 所以就只能把默认的一些爬虫 UA 屏蔽了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/848553

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX