demotomohiro / remocolab

remocolab is a Python module to allow remote access to Google Colaboratory using SSH or TurboVNC.
MIT License
317 stars 230 forks source link

New 2nd connection #58

Closed stefanjuang closed 4 years ago

stefanjuang commented 4 years ago

May I know what I would need to change to start multiple connections to VNC? Example: I started two colabs, both ran remocolab. The first can be connected to VNC through localhost:1 While the second cannot.

(Where can we change the server address parameter?)

Thanks

demotomohiro commented 4 years ago

You can connect to multiple TurboVNC servers by changing the local port part of -L option when you run second ssh command for port forwarding. For example, change -L 5901:localhost:5901 to -L 5902:localhost:5901 and specify localhost:2 on VNC viewer.

stefanjuang commented 4 years ago

Got it! Thank you 👍