传入 Apple 推送通知的端口号 [英] Port Number for Incoming Apple Push Notifications
问题描述
需要在网络上打开哪些网络服务、端口号、传出传入或两者兼而有之,ipod touch 才能接收 Apple 推送通知?
What network services, port numbers, outgoing incoming or both, need to be open on a network for an ipod touch to receive Apple Push Notifications?
我知道发送 apns 时要设置的传出端口号.唯一的问题是,在我的学校,几乎每个传出(和传入)端口都被阻止,因此 APN 无法正常工作.我确信,如果我与我的网络管理员交谈并告诉他要取消阻止哪个端口,他就会这样做.所以我的问题是:需要在网络上打开哪些网络服务、端口号、传出传入或两者兼而有之,ipod touch 才能接收 Apple 推送通知?
I know the outgoing port number to set when sending the apns. The only thing is, in my school practically every outgoing (and incoming) port is blocked and as a result APNs do not work. I am sure that if I talked to my network administrator and told him which port to unblock, he would do so. So my question is: What network services, port numbers, outgoing incoming or both, need to be open on a network for an ipod touch to receive Apple Push Notifications?
推荐答案
根据 Apple 的文档: 端口 5223.
According to Apple's docs: port 5223.
如果设备通过 Wi-Fi 连接并且仍然无法接收通知,Wi-Fi 网络您使用的可能有防火墙阻塞端口 5223.这个端口必须对 TCP 流量开放通知工作.
If the device is connected over Wi-Fi and is still unable to receive notifications, the Wi-Fi network you're using might have a firewall that is blocking port 5223. This port must be open to TCP traffic for notifications to work.
这篇关于传入 Apple 推送通知的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!