Google Cloud Messaging (GCM) 使用哪个端口和协议? [英] Which port and protocol does Google Cloud Messaging (GCM) use?

查看:33
本文介绍了Google Cloud Messaging (GCM) 使用哪个端口和协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Cloud Messaging (GCM) 使用哪个端口和协议?

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.

推荐答案

设备通过端口 5228-5230 访问 GCM 服务器.

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

注意:如果您的组织有限制流量的防火墙到 Internet 或从 Internet 访问,您需要对其进行配置以允许与 GCM 的连接.要打开的端口是:5228、5229 和 5230.GCM 通常只使用 5228,但有时也会使用 5229 和 5230. GCM不提供特定的 IP.它经常更改IP.我们推荐反对使用 ACL,但如果您必须使用它们,请采取广泛的方法例如此支持链接中建议的方法.

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.

如果您的设备通过 WiFi 连接到互联网,这很重要.

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

这里是相关 GCM 文档的链接:https://developers.google.com/cloud-messaging/http

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

这篇关于Google Cloud Messaging (GCM) 使用哪个端口和协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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