You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyhow, what I haven't explored yet is a simple, self-hosted signaling server to recommend, e.g. as a jupyterhub service: relying on unmirrorable, public/free services at runtime is always shady, I think it would be a good solution for many use cases, already, over a user sharing the jupyter_server instance 😱.
I came across this problem some time ago and started using the y-webrtc-signaling 'binary' from y-webrtc.
The y-webrtc-signaling source file bin/server.js should also give anyone wanting to implement the signaling server in python a good starting point.
Running a signaling server using nodejs
1. Setup the signaling server
For anyone wanting to give it a go, you need nodejs and npm and than just run in a directory where npm can install your project
# install y-webrtc package into your current folder
$ npm i y-webrtc
$ PORT=4444 npx y-webrtc-signaling
Signaling server running on localhost: 4444
It says running on localhost, but it's actually listening on 0.0.0.0, meaning it's listening on all network interfaces, so all the IPs your machine has.
Your signaling server can run under localhost/127.0.0.1 (YOUR_IP_OR_HOSTNAME), but your jupiterlite cant (I don't know why, probably part of the webrtc security model..). For local testing I just run both on 127.0.0.10, because my local ip changes a lot.
Problem
Suggested Improvement
The text was updated successfully, but these errors were encountered: