novnc / websockify

Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
GNU Lesser General Public License v3.0
3.94k stars 777 forks source link

Multiple port forwarding #134

Closed shanils closed 10 years ago

shanils commented 10 years ago

Hi,

I am having the situations like multiple vnc servers listening each to a different port (5900, 5901, ..., 5910) I would like to mention the noVNC to connect to a single port (wsproxy) like 80 or 443 (SSL) and redirect all communication to the right port ? Is there any method to do this ? i would like to do something like, path = WebUtil.getQueryVar('path', 'websockify?host=IP&port=portnumber');

Could you please help me to achieve this ?

kanaka commented 10 years ago

This is a duplicate of https://github.com/kanaka/websockify/issues/3 Note that the client to request arbitrary targets is a huge security issue and will not be implemented in websockify. However, you can pre-configure targets in a configuration file and then launch websockify using the --target-config option. You then specify a "token=XYZ" in the query parameters of the initial websocket request path.