Port number APNS and amp; Host name for push notification

If I understand it correctly, Push Notifications are sent to port # 5223. Now, which server port we are talking about here. I am running my application on a device which is on some WiFi network.

I want to know the host name (IP address) of the server on whose port # 5223 Pushes are sent by APNS.

Apple answers your question very clearly here
:

The APNs servers use load balancing. Your devices will not always connect to the same public IP address for notifications. The entire 17.0.0.0/8 address block is assigned to Apple, so it's best to allow this range in your firewall settings.

And to clarify the ports thingy, the devices use port 5223 to communicate to the APNs servers or port 443 as a fallback on Wi-fi only, when devices are unable to communicate to APNs on port 5223.

Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 移动开发 » Port number APNS and amp; Host name for push notification

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录