kumina / wsproxy

A websockets proxy, written in C
http://blog.kumina.nl
18 stars 4 forks source link

Can't get it work with noVNC #1

Closed unityweb closed 13 years ago

unityweb commented 13 years ago

Just trying out your wsproxy and i can't make it work (sorry really poor skills).

I don't understand how i can make noVNC connect to it and 'forward' to desired port.

I have it run : ./wsproxy 9000 9999

I have a bunch of vnc servers running from 9000, 9001, etc.

but on noVnc i can only specify "one" port (the wsproxy running port 8080 for me).

Any idea ? Thanks !

EdSchouten commented 13 years ago

Hi Unityweb!

Well, the default web page doesn't allow you to specify a port to which you want to forward the connection. To set the port number, you have to edit rfb.js and set rfb_uri to the port number you want wsproxy to forward the connection to. So:

rfb_uri = '9000'

will let wsproxy forward the connection to port 9000.

unityweb commented 13 years ago

Thanks, but still don't work. Pleas check your PM :)

EdSchouten commented 13 years ago

If you now start wsproxy with minport == maxport, you don't need to set rfb_uri anymore. It will connect to that port unconditionally. This should make it a lot easier to get average setups working.