amitbet / vncproxy

An RFB proxy, written in go that can save and replay FBS files
Other
206 stars 45 forks source link

Problem with noVNC #4

Closed YJesus closed 5 years ago

YJesus commented 5 years ago

Hi,

Im trying to use noVNC 1.0 (the latest) with vncproxy 1.0.2 but I got this error:

[Error] ClientConn.MainLoop: bad message type, 250 [Warn ] ClientConn.MainLoop: exiting! [Error] ClientUpdater.Consume (vnc-server-bound, SegmentFullyParsedClientMessage): problem writing to port: write tcp 127.0.0.1:34908->127.0.0.1:5900: use of closed network connection [Error] IServerConn.Handle: listener consume err write tcp 127.0.0.1:34908->127.0.0.1:5900: use of closed network connection

cmdline:

./proxy -recDir=./recordings/ -targHost=127.0.0.1 -targPort=5900 -tcpPort=5001

rfbproxy works well with this cmdline

./rfbproxy --record --server localhost:0 rfb.log

Thank you

amitbet commented 5 years ago

When using noVnc you want to open a websocket server, so you should use -wsPort=5001 you can use both wsPort and tcpPort if you want a regular vnc server as well as a websockified one.