获取公网IP的接口被墙了 #257
Replies: 14 comments 1 reply
-
| 同上 | 
Beta Was this translation helpful? Give feedback.
-
| 有稳定的ip查询服务可以评论补充一下 | 
Beta Was this translation helpful? Give feedback.
-
| 可以试一试: | 
Beta Was this translation helpful? Give feedback.
-
| 话说旧版本的还可以用 | 
Beta Was this translation helpful? Give feedback.
-
| http://myip.ipip.net/s | 
Beta Was this translation helpful? Give feedback.
-
| 
 北京联通返回偶尔返回错误错误地址,不知道原因。 | 
Beta Was this translation helpful? Give feedback.
-
| 搜狐的那个接口是最快的,长时间测试下来基本不会返回502 (淘宝的那个接口我IP3,4天没换这几天一直有用,他就给我频繁返回502绝了=,=) 对比ipv6-test 
 第一个ip3322没做多个服务器,只有江苏一台,偏远的用户返回较慢 
 | 
Beta Was this translation helpful? Give feedback.
-
| ##132 | 
Beta Was this translation helpful? Give feedback.
-
| 在尝试使用搜狐的接口时需要把 ip.py   _open 函数中的代码 | 
Beta Was this translation helpful? Give feedback.
-
| 
 这个地方我前几天已经注意到了,你看前几天的版本这个问题已经修正了。 | 
Beta Was this translation helpful? Give feedback.
-
| 
 啊,我刚刚通过pip安装的,可能那面的代码还未更新。。打扰了 | 
Beta Was this translation helpful? Give feedback.
-
| @liuwei1573 现在还是utf8, @cybmp3 关于ip获取部分的修改没有merge 这个地方倒是可以根据响应头指定的编码方式进行解码。默认 utf8 | 
Beta Was this translation helpful? Give feedback.
-
| 建议添加异常处理,如 sever酱报警功能 | 
Beta Was this translation helpful? Give feedback.
-
| 我来补充一个: | 
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#默认 https://api-ipv4.ip.sb/ip 这个地址好像被墙了
可以自定义公网IP服务,解决
如
{ "index4":"url:http://ip.3322.net/" }目前可供参考
最好IPv4和IPv6两个版本
欢迎评论补充
Beta Was this translation helpful? Give feedback.
All reactions