Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 699
Thomas Vervik Avatar asked Mar 22 '13 13:03

Thomas Vervik


People also ask

Is GCM and FCM same?

Firebase Cloud Messaging(FCM), was formerly known as Google Cloud Messaging(GCM). FCM is a cloud platform that provides messages and push notifications for operating systems- ios and Android, and websites as well.

How does Google Cloud Messaging work?

The first step in GCM is that a third-party server (such as an email server) sends a request to Google's GCM server. This server then sends the message to your device, through that open connection. The Android system looks at the message to determine which app it's for, and starts that app.

What is GCM connection?

This document describes the Google Cloud Messaging (GCM) HTTP connection server. Connection servers are the Google-provided servers that take messages from the 3rd-party application server and sending them to the device.

What is FCM and GCM?

Firebase Cloud Messaging (FCM), formerly known as Google Cloud Messaging (GCM), is a cross-platform cloud solution for messages and notifications for Android, iOS, and web applications, which as of June 2022 can be used at no cost.


1 Answers

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

like image 145
Eran Avatar answered Sep 28 '22 09:09

Eran