简体   繁体   English

解析服务器:我需要在防火墙中为ios推送通知打开哪些端口? (APNS)

[英]Parse Server: Which ports do I need to open in my firewall for ios push notifications? (APNS)

I try to setup parse on my own server. 我尝试在自己的服务器上设置parse I got it up and running. 我把它搞定了。

Which ports do I need to open in my firewall for ios push notifications via APNS? 我需要在防火墙中打开哪些端口才能通过APNS进行ios推送通知?

I found this info on the web: 我在网上发现了这个信息:

  1. TCP port 5223 (used by devices to communicate to the APNs servers) TCP端口5223(设备用于与APN服务器通信)
  2. TCP port 2195 (used to send notifications to the APNs) TCP端口2195(用于向APN发送通知)
  3. TCP port 2196 (used by the APNs feedback service) TCP端口2196(由APNs反馈服务使用)
  4. TCP Port 443 (for https access to the API) TCP端口443(用于https访问API)

I could not find any poof somewhere else. 我在其他地方找不到任何噗声。 Is this correct? 这个对吗?

Apple provides a full list of ports used by its software and products. Apple提供了其软件和产品使用的完整端口列表

The ports 2195, 2196 and 5223 are used by APNS according to this list. APNS根据该列表使用端口2195,2196和5223。

But you still have to open port 443 for wi-fi only network, according to this Apple support page : 但是根据Apple 支持页面的说法,你仍然需要为仅支持 wi-fi的网络打开443端口:

If you use Wi-Fi behind a firewall or a private Access Point Name (APN) for cellular data, you'll need a direct, unproxied connection to the APNs servers on these ports: 如果您使用防火墙后面的Wi-Fi或蜂窝数据的专用接入点名称(APN),则需要与这些端口上的APN服务器建立直接,未经过代理的连接:

  • TCP port 5223: For communicating with Apple Push Notification services (APNs) TCP端口5223:用于与Apple推送通知服务(APN)通信
  • TCP port 2195: For sending notifications to APNs TCP端口2195:用于向APN发送通知
  • TCP port 2196: For the APNs feedback service TCP端口2196:用于APNs反馈服务
  • TCP port 443: For a fallback on Wi-Fi only, when devices can't reach APNs on port 5223 TCP端口443:仅用于Wi-Fi回退,当设备无法到达端口5223上的APN时

You need below port open for ios push notifications via APNS: 您需要通过APNS在以下端口打开ios推送通知:

TCP port 2195 (used to send notifications to the APNs) TCP端口2195(用于向APN发送通知)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM