I am trying to control the port range that VNC and websockify use for interactive applications. VNC seems to start from 5900+N, however websocket doesn’t have a particular pattern (below is 42717). How can we control websockify server settings i.e. specify a range for Websocket to listen on?
Successfully started VNC server on hostname.edu:5901...
Script starting...
Starting websocket server...
/home/user/ondemand/data/sys/dashboard/batch_connect/dev/RStudio/output/.../script.sh: line 4: i#Clean: command not found
The system default contains no modules
(env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
No changes in loaded modules
+ xfwm4 --compositor=off --daemon --sm-client-disable
WebSocket server settings:
- Listen on :42717
- No SSL/TLS support (no cert file)
- Backgrounding (daemon)
Scanning VNC log file for user authentications...
Generating connection YAML file...
This was exactly what I was looking for! Thanks for pointing this out and the second response. Indeed I didn’t get the a note on the original edited response.
It would be good to add this to the OOD wiki for those institutions that need to track/restrict certain port ranges for security reasons.