Ping 到 APNS 没有返回 [英] Ping to APNS not returning

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

问题描述

我正在尝试连接到 Apple 的推送通知服务器并推送一些通知.所有连接尝试都超时.尝试 ping 服务器 gateway.sandbox.push.apple.comgateway.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?

推荐答案

我在 Apple 论坛上发布了这个问题,但没有得到任何回应.但是,经过大量的实验,我自己弄明白了.通过代理路由的任何对 APNS 的请求,无论是 ping 还是连接请求,都会在传输过程中被过滤掉,并且永远不会到达 APNS.这可能是由于苹果公司的安全问题.这意味着来自您工作地点机器的任何请求将永远不会通过,因为它们总是通过代理服务器路由.在没有任何中间代理的情况下通过直接互联网连接发送的任何请求都会发送到 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/笔记本电脑共享,然后尝试连接或 ping APNS,它应该会成功.您的 mpobile 3G 连接是直接的互联网连接.要使其在您的工作地点正常工作,请向您的 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.

更新:碰巧是防火墙问题.配置防火墙以允许连接到 APNS 范围的 IP 后解决.

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

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

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