# Node-red on ppp connection

**URL:** <https://discourse.nodered.org/t/node-red-on-ppp-connection/23917>\
**Category:** General\
**Created:** [30 March 2020 17:45 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917 "2020-03-30T17:45:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mortencallesen](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mortencallesen](https://discourse.nodered.org/u/mortencallesen)\
**Post date:** [30 March 2020 17:45 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/1 "2020-03-30T17:45:18Z")

</div>

Hi,  
I have a node-red setup on a raspberry pi.  
when running on wlan it works fine... collects data and drops it of on google firestore

when I disconnect wlan, and setup a connection via ppp (gprs connection) data does not arrive.

the raspberry can still ping [www.google.com](http://www.google.com), but it stops dropping data to firestore.

am I doing something wrong when running node-red-start?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 20:09 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/2 "2020-03-30T20:09:06Z")

</div>

Just as an experiment, does it work if you restart node-red after switching the connections?

---

<div class="post-metadata">

**Author:** ![mortencallesen](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mortencallesen](https://discourse.nodered.org/u/mortencallesen)\
**Post date:** [31 March 2020 07:00 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/3 "2020-03-31T07:00:33Z")

</div>

No,

The raspberry can ping, I can do wget, node-red can even ping and output to console, but it stops delivering data to firebase.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 March 2020 08:01 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/4 "2020-03-31T08:01:51Z")

</div>

It sounds like something is blocking the firebase comms somewhere. I read somewhere that it uses websockets (though that may not be correct), perhaps they are blocked. What node are you using for firebase?

---

<div class="post-metadata">

**Author:** ![mortencallesen](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mortencallesen](https://discourse.nodered.org/u/mortencallesen)\
**Post date:** [31 March 2020 16:05 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/5 "2020-03-31T16:05:17Z")

</div>

so this is odd...  
first of all, it turns out it has nothing to do with node-red.

I wrote a quick nodejs app, and am running it on the raspberry... when it is connected via wlan, it updates a document on firestore

when i disconnect wlan, and start up ppp i get the same error here....

UnhandledPromiseRejectionWarning: Error: 4 DEADLINE\_EXCEEDED: Deadline exceeded

i can ping

i can do a : wget [www.google.com](http://www.google.com) (page downloads)

i can not do a firestore.db.set ....

☹ Dangit

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 March 2020 19:52 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/6 "2020-03-31T19:52:09Z")

</div>

> [@mortencallesen](#):
>
> turns out it has nothing to do with node-red.

That is not surprising. As I suggested, probably something is blocking the comms via that route. Possibly because it is websocket (if it is) but that is pure conjecture without knowing anything about firebase.

---

<div class="post-metadata">

**Author:** ![mortencallesen](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mortencallesen](https://discourse.nodered.org/u/mortencallesen)\
**Post date:** [1 April 2020 19:45 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/7 "2020-04-01T19:45:08Z")

</div>

damn you internet!! - Thanks Colin for the pointer!!

Routing is not my strongsuit - and its not related to this channel ☹

but... would your guess be that there should be a routing solution for this, or am I better off looking at creating some sort of webhook endpoint (which I CAN access now) and then let that endpoint handle the firebase bits?

a quick google on "gprs ppp websocket debian" does not point me in any direction.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 April 2020 20:49 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/8 "2020-04-01T20:49:18Z")

</div>

I am out of my comfort zone I am afraid.  
@dceejay can you throw any light on what this problem might be? It isn't node-red it is something to do with the connection. I don't know how to debug it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 May 2020 20:49 UTC](https://discourse.nodered.org/t/node-red-on-ppp-connection/23917/9 "2020-05-31T20:49:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
