我们如何检查我们的IP是否被苹果阻止使用APNS服务
我的 apns 直到昨天都还好好的。但从今天开始,我就收到了这个错误。
.Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection timed out)
我没有改变任何东西。我正在使用临时分发配置文件。我多次使用 apns 服务进行测试。所以我很困惑苹果是否阻止了我的IP。我们如何检查我们的IP是否被苹果阻止使用APNS服务?
My apns was fine till yesterday. But today onwards am getting this error.
.Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection timed out)
I didn't change anything. I am using an adhoc distribution profile.I used apns service too many times for testing. So i am confused about whether apple blocked my ip.How we can check that our IP is blocked by apple from using APNS service ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用的是哪个版本?如果是5.2,请用5.3测试
。如果您使用的是5.3,那么请确定SSL是否打开或关闭(启用或不启用)。
Which version you are using? If it is 5.2, please test with 5.3
If you are using 5.3, then please make sure whether SSL is on or off (enabled or not).
虽然我无法帮助您检查您的 IP 地址(好吧,除了尝试新的 IP 或代理),但您可以尝试以下一些操作来恢复您的 APNS 功能。
我会检查您的推送证书。它可能已过期。
另外,看看城市飞艇。 UA 是一项很棒的服务,可以帮助您使用 APNS。我看到他们专门提到沙箱控制,以避免你突破极限的问题。 (双关语。)
编辑:
根据错误的最后部分,
(连接超时)
,它看起来不像 IP 块。它会显示(连接被拒绝)
。While I can't help you check your IP addresses (well, aside from trying a new IP, or proxy), here are some things you can try to restore your APNS ability.
I would check your push certificate. It may have expired.
Also, look into Urban Airship. UA is a great service that helps you with using APNS. I have seen them mention Sandbox control specifically to avoid your problem of pushing the limit. (pun intended.)
EDIT:
Based on the last part of your error,
(Connection Timeout)
, it does not look like an IP block. It would say(Connection refused)
.