我应该在我的Rails服务器上为Firebase云消息打开哪些端口? [英] What ports should I open for Firebase cloud messaging in my rails server?

查看:308
本文介绍了我应该在我的Rails服务器上为Firebase云消息打开哪些端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做什么:
HTTP消息传递给我的android应用程序



AWS上的Rails服务器 - >使用fcm创建Firebase的HTTP请求gem - > HTTP响应



在此流程中,我应该向Firebase服务器打开哪个端口?

作为FCM文档说5228〜5230,但它没有工作。
(我的服务器retunrs 500,执行过期错误)
只有当我打开所有的端口打开到全世界,它的工作。

什么端口应该我打开..?

解决方案

5228〜5230端口用于接收邮件。

要发送消息,您只需要打开连接即可。

  https://fcm.googleapis。 com / fcm / send 

根据您的配置,这可能不需要任何更改(通常从服务器不需要更改防火墙),也可能需要打开标准 HTTPS 端口: 443


What I'm trying to do: HTTP messaging to my android app

Rails server on AWS -> HTTP request to Firebase with fcm gem -> HTTP Response

In this flow, what port should I open to Firebase server?

I've opened 5228~5230 as FCM docs said, but it didn't work. (My server retunrs 500, execution expired error) Only when I open all ports open to whole world, it worked.

What ports should I open..?

解决方案

5228~5230 ports are used to receive messages.

To send messages you only need to be able to open connections to

https://fcm.googleapis.com/fcm/send

Depending on your configuration this might not require any change (usually connections open from the server don't require firewall changes) or it might require to open the standard HTTPS port: 443

这篇关于我应该在我的Rails服务器上为Firebase云消息打开哪些端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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