So I'm currently trying to remote access my Bela but not everything seems to work.
I've been using cloudflared to set up a tunnel to the Bela accessing localhost:80 over a domainname. The IDE seems functional, no trouble compiling and starting patches but when I open the GUI it get stucks on the "In order to use the GUI functionality in Bela..." page.
Opening the dev console (Firefox) gives me these errors:
HTTPS-Only Mode: Upgrading insecure request “ws://bela.domain.net:5555/gui_data” to use “wss”.
Firefox can’t establish a connection to the server at wss://bela.domain.net:5555/gui_data.
After this I've edited BelaWebSocket.js to use wss instead of ws like this:
this.url = "wss://" + this.ip + ":"+this.port+"/"+this.address;
But this doesn't help either:
Firefox can’t establish a connection to the server at wss://bela.domain.net:5555/gui_control.
Error: undefined
error { target: WebSocket, isTrusted: true, srcElement: WebSocket, currentTarget: WebSocket, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … }
Socket closed
Reconnecting(1)...
Object { port: 5555, address: "gui_control", ip: "bela.domain.net", ws: WebSocket, connectInterval: 1500, url: "wss://bela.domain.net:5555/gui_control", projectName: null, sliders: [], selectors: [], gui: null, … }
Retrying connection in 1500 ms
It says the socket is closed but:
netstat -tuln | grep 5555
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN
I have also tried this using another reverse proxy called boringproxy but results are the same.