Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

UltraVNC SC

Developers may discuss here
Post Reply
larytet
Posts: 5
Joined: 2016-09-08 09:32

UltraVNC SC

Post by larytet »

Hello,

I am trying to run UltraVNC SC_II_RC23 with https://kanaka.github.io/noVNC/

I have to patch the noVNC to allow accept the connections from the VNC server instead of connected by itself.
The patches in noVNC are:
https://github.com/larytet/websockify/c ... 7e04a68aa3
https://github.com/larytet/noVNC/commit ... 47f7f87f7c

I am getting

Code: Select all

Disconnected: unsupported encoding 16"
in the WEB browser. I have looked in the source code and I see that this is probably rfbEncodingZRLE.

I do not quite understand how the vncencodemgr.h chooses the encoder when the VNC server connects to the client. Can I force different encoding, for example rfbEncodingTight(7)?

Thank you.
larytet
Posts: 5
Joined: 2016-09-08 09:32

Re: UltraVNC SC

Post by larytet »

More research:

* All SingleClick patches are under SINGLECLICKULTRA
* Message MENU_ADD_CLIENT_MSG causes adding a new client to the server in single click mode

How the "dummy" chooses the encoding?
larytet
Posts: 5
Joined: 2016-09-08 09:32

Re: UltraVNC SC

Post by larytet »

I still can not understand how the server in single click mode decides to use ZRLE and where I can patch the code and force, for example, raw enconding
larytet
Posts: 5
Joined: 2016-09-08 09:32

Re: UltraVNC SC

Post by larytet »

This is the full log until connection:

Code: Select all

Mon Sep 12 11:31:46 2016
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\winvnc.cpp : sockets initialised
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\winvnc.cpp : test... 192.168.0.111 5901
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\winvnc.cpp : server created ok
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncproperties.cpp : loading local-only settings
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillAuthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillUnauthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillAuthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillUnauthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : authhosts cleared
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillAuthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillUnauthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillAuthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillUnauthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncpropertiespoll.cpp : clearing user settings
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : vncClient() executing...
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : TEST 4
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : AddClient() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : client connected : 192.168.0.111 (1)
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : DSMPlugin Pointer to socket OK
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : m_ms_logon set to false --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : negotiated version
 --The operation completed successfully.
Entered InitAuthenticate --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : initialising desktop handler
 --The specified module could not be found.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopsw.cpp : SWinit 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : ### G_USE_PIXEL 0 47 46
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : Blit time 46  Getpixeltime 47  Use getpixel= 0
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopthread.cpp : Hook changed 1
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopthread.cpp : Hook changed 2
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : KillScreenSaver...
 --The operation completed successfully.
Mon Sep 12 11:31:47 2016
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : InitVideo driver Called no Temp_Resolution
 --The system cannot find the file specified.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : Driver option dsiabled 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : No driver used 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : bitmap dimensions are 3840 x 2160
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : created memory bitmap
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : got bitmap format
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : attempting to enable DIBsection blits
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : enabled fast DIBsection blits OK
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : no palette data for truecolour display
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : request local buffer[33177600]
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : fast blits detected - using DIBsection buffer
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : local buffer=33177600
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopsw.cpp : GetQuarterSize 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopsw.cpp : GetQuarterSize 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : SethookMechanism called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : Sethook_restart_wanted hook=1 driver=0 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : Hookdll status changed 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencodemgr.h : raw encoder requested
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : settranslatefunction called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : settranslatefunction called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : no translation required
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencodemgr.h : request client buffer[33177612]
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : Authenticated() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : authenticated connection
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : request local buffer[33177600]
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : fast blits detected - using DIBsection buffer
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncbuffer.cpp : local buffer=33177600
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopthread.cpp : Hook changed 
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : set hooks OK
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : sent pixel format to client
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : init update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : starting update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : disable update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable/disable synced
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencodemgr.h : SetClientFormat called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : settranslatefunction called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : triple LUT used
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable/disable synced
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : disable update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable/disable synced
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : Tight found
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencodemgr.h : ZRLE encoder requested
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : settranslatefunction called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : settranslatefunction called
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : triple LUT used
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencodemgr.h : request client buffer[49766428]
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : image quality level requested: 6
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : compression level requested: 9
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : LastRect protocol extension enabled
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable/disable synced
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncencoder.cpp : remote palette data requested
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vsocket.cpp : zero bytes read2
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncservice.cpp : SelectHDESK to Default (ac) from ac
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncservice.cpp : SelectHDESK failed to close old desktop ac (Err=170)
 --The requested resource is in use.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : client disconnected : 192.168.0.111 (1)
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : disable update thread
 --The specified module could not be found.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : enable/disable synced
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : kill update thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : stopping update thread
 --The operation completed successfully.
client sent 1 updates
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncclient.cpp : update thread gone
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : removing authorised client
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : deleting desktop server
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktop.cpp : killing screen server
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncdesktopthread.cpp : quitting desktop server thread
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncservice.cpp : SelectHDESK to Default (ac) from ac
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncservice.cpp : SelectHDESK failed to close old desktop ac (Err=170)
 --The requested resource is in use.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : desktop deleted
 --Access is denied.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : RemoveClient() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncmenu.cpp : quitting from WM_DESTROY
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\winvnc.cpp : shutting down server
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : shutting down server object
 --Attempt to release mutex not owned by caller.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillAuthClients() done
 --The operation completed successfully.
c:\users\sub-7\downloads\z_sc\winvnc\winvnc\vncserver.cpp : KillUnauthClients() done
 --The operation completed successfully.
larytet
Posts: 5
Joined: 2016-09-08 09:32

Re: UltraVNC SC

Post by larytet »

Patch the function vncEncoding::SetEncoding() use HexT encoder in the case rfbEncodingTigh.
Works with noVNC client.
Post Reply