Ngrok tunnel to a Fadecandy server

19 views
Skip to first unread message

medium blue

unread,
Dec 2, 2020, 7:35:24 AM12/2/20
to Fadecandy
I'm trying to connect to a Fadecandy server running on a Raspberry Pi.

I set up two ngrok tunnels one for the www interface one for a Websocket. Fadecandy is listening on port 7890 and so I run ngrok http 7890

I copied ngrok url to my javascript so the line reads now 

var socket = new WebSocket('ws://d952ded366a7.ngrok.io');

When I run it Fadecandy quits immediately with:

WARN: Unknown client spec version 0 double free or corruption (out) Aborted

Is it possible to connect to the Fadecandy server remotely? If so, what am I doing wrong?

AT CoD

unread,
Dec 2, 2020, 10:21:44 AM12/2/20
to medium blue, Fadecandy
Look at your fadecandy config.  By default he server only listens on the loop back interface.  



--


You received this message because you are subscribed to the Google Groups "Fadecandy" group.


To unsubscribe from this group and stop receiving emails from it, send an email to fadecandy+...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/fadecandy/88ffb407-2172-4932-8097-d09b267bc7b4n%40googlegroups.com.


medium blue

unread,
Dec 2, 2020, 10:44:04 AM12/2/20
to AT CoD, Fadecandy
Thank you. Would you be so kind to give me more details. What do I change exactly? It's my first time using Fadecandy. 

medium blue

unread,
Dec 2, 2020, 1:52:40 PM12/2/20
to fade...@googlegroups.com
It's exactly the config I have. The server seems to connect for a second and then quits with the error above. 

Would appreciate any other suggestions.



On Wed, 2 Dec 2020, 17:58 Björn Bergenheim, <bjorn.be...@gmail.com> wrote:
Its the listen part you want to change from 127.0.0.1 to null, like this. This is in the config.json file.

{
    "listen": [null, 7890],
    "verbose": true,

    "color": {
        "gamma": 2.5,
        "whitepoint": [1.0, 1.0, 1.0]
    },

    "devices": [
        {
            "type": "fadecandy",
            "map": [
                [ 0, 0, 0, 512, "rgb" ]
            ]
        }
    ]
}

/Björn

medium blue

unread,
Dec 2, 2020, 5:03:34 PM12/2/20
to Björn Bergenheim, fade...@googlegroups.com
Yes, I'm running html examples locally without any problem. 

On Wed, 2 Dec 2020, 21:42 Björn Bergenheim, <bjorn.be...@gmail.com> wrote:
Did you try to use the exampels from here https://github.com/scanlime/fadecandy/blob/master/doc/fc_protocol_websocket.md#connecting without any tunneling?

/Björn

Skickat från min iPhone

2 dec. 2020 kl. 19:52 skrev medium blue <medium...@gmail.com>:


Reply all
Reply to author
Forward
0 new messages