Which port and protocol does Google Cloud Messaging (GCM) use?

感情迁移 提交于 2019-12-28 01:29:27

问题


Which port and protocol does Google Cloud Messaging (GCM) use?

We experience some times that messages doesnt get through, and have noticed that it depends on which network we sitting on.


回答1:


The device accesses the GCM servers on ports 5228-5230.

Note: If your organization has a firewall that restricts the traffic to or from the Internet, you'll need to configure it to allow connectivity with GCM. The ports to open are: 5228, 5229, and 5230. GCM typically only uses 5228, but it sometimes uses 5229 and 5230. GCM doesn't provide specific IPs. It changes IPs frequently. We recommend against using ACLs but if you must use them, take a broad approach such as the method suggested in this support link.

This is relevant if your device is connected to the internet via WiFi.

Here is the link to the relevant GCM documentation: https://developers.google.com/cloud-messaging/http



来源:https://stackoverflow.com/questions/15571576/which-port-and-protocol-does-google-cloud-messaging-gcm-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!