<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rocket.Chat push notifications not working - remoteIP wrong]]></title><description><![CDATA[<p dir="auto">I am running my instance of Rocket.Chat and still have not managed to get the push notifications working.</p>
<p dir="auto">Around one month ago, I have opened a thread in the RC forum, because I thought the error i got was more relied to their side. As I am not getting an answer there, I decided to link this one here as well.</p>
<hr />
<p dir="auto">So I have set up my RC instance and I registered it on RC Cloud.</p>
<p dir="auto">The Push Gateway is enabled and set to <a href="https://gateway.rocket.chat/" target="_blank" rel="noopener noreferrer nofollow ugc">https://gateway.rocket.chat/</a>.</p>
<p dir="auto">I installed the RC apps on an iPhone, an android phone as well as on my Macbook. Finally I also managed to send test-push-notifications via the dedicated button. It tells me that it has successfully sent a test notification to 1 device. However, having checked the settings and permissions on the phones, I to not receive any notification on either of them.</p>
<p dir="auto">When I look at the Log I can see two suspicious entries. What is the remoteIP? The VM of the RC is NATed by a firewall and does have a dedicated public IP, which is obviously not the remoteIP. May that be the problem? How could I change this?</p>
<pre><code>{"level":35,"time":"2021-11-01T09:15:10.813Z","pid":1,"hostname":"ca5sdgh54-1a8d-4564-b816-8d3e5edffd65","name":"API","method":"POST","url":"/api/v1/method.call/push_test","userId":"So49htrw","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0","length":"87","host":"rocketchat.foobar.com","referer":"https://rocketchat.foobar.com/admin/Push",**"remoteIP":"172.16.115.1"**,"status":200,"responseTime":67} {"level":50,"time":"2021-11-01T09:15:11.118Z","pid":1,"hostname":"ca35684-1a484-b816-8d3e5d65","name":"Push","msg":"Error sending push to gateway (0 try) -&gt; {\"response\":{\"statusCode\":404,\"content\":\"404 page not found\",\"headers\":{\"access-control-allow-headers\":\"Content-Type, Authorization, Content-Length, X-Requested-With\",\"access-control-allow-methods\":\"GET, PUT, POST, DELETE, OPTIONS\",\"access-control-allow-origin\":\"*\",\"access-control-expose-headers\":\"Content-Type, Authorization, Cache-Control, Expires, Pragma, X-powered-by\",\"cache-control\":\"private, no-cache, no-store, must-revalidate\",\"content-length\":\"18\",\"content-type\":\"text/plain\",\"date\":\"Mon, 01 Nov 2021 09:15:11 GMT\",\"expires\":\"-1\",\"pragma\":\"no-cache\",\"x-powered-by\":\"Rocket Fuel and Rocketeers\",\"connection\":\"close\"},\"data\":null}}"} 
</code></pre>
<p dir="auto">The second entry I do not understand is this…</p>
<pre><code>{"level":50,"time":"2021-11-01T09:11:15.118Z","pid":1,"hostname":"ca54-b816-8d3edffd65","name":"Push","msg":"Error sending push to gateway (4 try) -&gt; {\"response\":{\"statusCode\":404,\"content\":\"404 page not found\",\"headers\":{\"access-control-allow-headers\":\"Content-Type, Authorization, Content-Length, X-Requested-With\",\"access-control-allow-methods\":\"GET, PUT, POST, DELETE, OPTIONS\",\"access-control-allow-origin\":\"*\",\"access-control-expose-headers\":\"Content-Type, Authorization, Cache-Control, Expires, Pragma, X-powered-by\",\"cache-control\":\"private, no-cache, no-store, must-revalidate\",\"content-length\":\"18\",\"content-type\":\"text/plain\",\"date\":\"Mon, 01 Nov 2021 09:11:15 GMT\",\"expires\":\"-1\",\"pragma\":\"no-cache\",\"x-powered-by\":\"Rocket Fuel and Rocketeers\",\"connection\":\"close\"},\"data\":null}}"} {"level":30,"time":"2021-11-01T09:11:15.119Z","pid":1,"hostname":"ca5e0f54-1a4d-4594-b816-8d3e5edffd65","name":"Push","msg":"Trying sending push to gateway again in 960000 'milliseconds'"} 
</code></pre>
<p dir="auto">Follow the thread here:<br />
<a href="https://forums.rocket.chat/t/getting-push-notifications-to-work/12513" target="_blank" rel="noopener noreferrer nofollow ugc">https://forums.rocket.chat/t/getting-push-notifications-to-work/12513</a></p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.cloudron.io/topic/6094/rocket-chat-push-notifications-not-working-remoteip-wrong</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 04:08:03 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6094.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Nov 2021 17:28:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rocket.Chat push notifications not working - remoteIP wrong on Tue, 30 Nov 2021 00:55:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/opensourced" aria-label="Profile: opensourced">@<bdi>opensourced</bdi></a> I tried this on Android.</p>
<p dir="auto">I thought registering the server in the initial setup screen made things work but it didn't. What I had to do was:</p>
<ul>
<li>
<p dir="auto"><code>Administration</code> -&gt; <code>Connectivity Services</code> . On top right, click Cloud console:<br />
<img src="/assets/uploads/files/1638233601503-c00b8bb4-526f-469d-a67e-cf784d3438bb-image-resized.png" alt="c00b8bb4-526f-469d-a67e-cf784d3438bb-image.png" class="img-markdown  img-fluid" /></p>
</li>
<li>
<p dir="auto">Then, I registered a new account there with my email. Verified the email. I then created a selfhosted instances to got a "token" which I had to put in the UI above.</p>
</li>
<li>
<p dir="auto">After that, I <code>Administration</code> -&gt; <code>Push</code> and clicked on <code>Send a test push to my user</code> . That did not work.</p>
</li>
<li>
<p dir="auto">Restarted the app</p>
</li>
<li>
<p dir="auto"><code>Administration</code> -&gt; <code>Push</code> and clicked on <code>Send a test push to my user</code> . That worked. I got <code>This is a push test message</code> notification.</p>
</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/39942</link><guid isPermaLink="true">https://forum.cloudron.io/post/39942</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 30 Nov 2021 00:55:35 GMT</pubDate></item></channel></rss>