平到APNS不返回 [英] Ping to APNS not returning

查看:179
本文介绍了平到APNS不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图连接到苹果的推送通知服务器,并推动一些通知。所有连接尝试超时。试着ping服务器的 gateway.sandbox.push.apple.com gateway.push.apple.com 并他们是不可达。这些服务器活着到达?任何机构可以验证他们到达?它是一个区域性的问题?

I am trying to connect to Apple's Push Notification servers and push some notifications. All connections attempts are timing out. Tried pinging the server gateway.sandbox.push.apple.com and gateway.push.apple.com and they are not reachable. Are these servers alive and reachable? Can any body validate that they are reachable? Is it a regional problem?

推荐答案

我贴在苹果论坛上这个问题,但没有得到任何回应。但是,我大量的实验后,理解了它自己。任何请求APNS,无论ping或连接请求,这是通过代理路由过境被过滤掉,不会到达APNS。这可能是做由于由苹果人的安全问题。这意味着,从您的机器在你的工作地点的任何请求将永远不会通过,因为他们总是通过代理服务器进行路由。 ,通过没有任何中间代理直接Internet连接发送的任何请求,使其APNS

I posted this question on the Apple forums but did not get any response. But, I figured it out myself after lot of experiments. Any requests to APNS, whether ping or connection requests, that are routed through proxies are filtered out in the transit and will never reach the APNS. This is probably done due to security concerns by the Apple guys. This means that any requests from your machines at your work locations will never go through as they are always routed through a proxy server. Any requests that sent through a direct internet connection without any intermediate proxies make it to APNS.

要测试这一点,你可以系绳您的移动3G连接,并与您的PC /笔记本电脑共享,然后尝试连接或侦测APNS,它应该会成功。您mpobile 3G连接是一个直接的Internet连接。为了得到它在你的工作地点工作要求您的IT的直接连接。

To test this you can tether your mobile 3G connection and share it with your PC/Laptop and then try connecting or pinging APNS and it should succeed. Your mpobile 3G connection is a direct internet connection. To get it working at your work locations ask your IT for a direct connection.

更新:这正好是一个防火墙问题。配置防火墙允许的IP地址范围APNS连接之后,得到解决。

Update: It happened to be a firewall issue. Resolved after configuring the firewalls to allow connections to APNS range of IPs.

这篇关于平到APNS不返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆