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

Server in "Listen" mode closes immediately after connection

Post Reply
cprice
8
8
Posts: 8
Joined: 2012-01-13 18:25

Server in "Listen" mode closes immediately after connection

Post by cprice »

Hello all,

I have a very strange issue.

Setup:
  • UltraVNC_Repeater 1.08
    UltraVNC Server 1.0.9.6.1
    Viewer is in a private network
    Server is in a private network
    Repeater is in a public network (ports 80 and 443 are open)
On some of the machines in our network, we are receiving the following situation when attempting to connect to a server in "Listen" mode.

1. Run the following command line on the server

Code: Select all

winvnc -id:9999 -autoreconnect -connect repeaterip:80 -run
2. Attempt to view the server with UltraVNC viewer

3. The server connects for 1-2 seconds, then immediately closes.

Notes:
- This happens on machines with identical specs (network and hardware) as machines that are working perfectly
- We have attempted several display configurations other than "Auto"

Any ideas? Below is the log file of the server during the attempted connection. I've highlighted in red what may be of user "unable to set new desktop size"

Thanks much!

CP
Mon Feb 06 18:37:29 2012
vncserver.cpp : authhosts set to ""
vncproperties.cpp : ***** DBG - Load User Preferences
vncproperties.cpp : clearing user settings
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : FromClear called
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
vncserver.cpp : trying port number 5900
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
Mon Feb 06 18:37:30 2012
vsocket.cpp : closing socket
vncsockconnect.cpp : started socket connection thread
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
--A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vncproperties.cpp : $$$$$$$$$$ ApplyUserPrefs - Plugin NOT enabled
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : ToText called
vnchttpconnect.cpp : started HTTP server thread
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = RMS
--The system cannot find the file specified.
vncmenu.cpp : ########### vncMenu::AddTrayIcon - ADD Tray Icon call
vncmenu.cpp : ########### Shell_TrayWnd found 0
vncmenu.cpp : IsIconSet
winvnc.cpp : PostAddNewClient IIIII
vncserver.cpp : AutoConnectRetry(): started
vncserver.cpp : Attempting AutoReconnect....
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
Mon Feb 06 18:37:36 2012
vncserver.cpp : AddClient() started
vncclient.cpp : vncClient() executing...
vncclient.cpp : TEST 4
vncserver.cpp : AddClient() done
vncclient.cpp : client connected : 184.73.69.130 (1)
vncclient.cpp : DSMPlugin Pointer to socket OK
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
Mon Feb 06 18:37:40 2012
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
Mon Feb 06 18:37:42 2012
vncclient.cpp : m_ms_logon set to falsevncclient.cpp : negotiated version
Entered InitAuthenticate
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : ToText called
Mon Feb 06 18:37:45 2012
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
Mon Feb 06 18:37:50 2012
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
Mon Feb 06 18:37:52 2012
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : ToText called
Mon Feb 06 18:37:55 2012
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: RMS
--Overlapped I/O operation is in progress.
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
Mon Feb 06 18:37:57 2012
vncclient.cpp : Leaving InitAuthenticate
vncdesktop.cpp : initialising desktop handler
vncDesktopSW.cpp : SWinit
--The specified procedure could not be found.
Mon Feb 06 18:37:58 2012
benchmark.cpp : Blit time 41 Getpixeltime 0 Use getpixel= 1
--Not enough storage is available to process this command.
vncdesktopthread.cpp : Hook changed 1
vncdesktopthread.cpp : Hook changed 2
vncdesktop.cpp : KillScreenSaver...
vncdesktop.cpp : InitVideo driver Called
--The system cannot find the file specified.
vncdesktop.cpp : Driver option disabled
vncdesktop.cpp : No driver used
vncdesktop.cpp : bitmap dimensions are 1280 x 800
vncdesktop.cpp : created memory bitmap
vncdesktop.cpp : got bitmap format
vncdesktop.cpp : attempting to enable DIBsection blits
vncdesktop.cpp : enabled fast DIBsection blits OK
--Not enough storage is available to process this command.
vncdesktop.cpp : no palette data for truecolour display
vncdesktopsink.cpp : StartInitWindowthread
vncdesktopsink.cpp : StartInitWindowthread default desk
vncdesktopsink.cpp : InitWindow called
vncdesktopsink.cpp : InitWindow:OpenInputdesktop OK
vncdesktopsink.cpp : InitWindow:SelectHDESK to Default (628) from 7d8
vncdesktopsink.cpp : wmcreate
vncdesktopsink.cpp : OOOOOOOOOOOO load hookdll's
vncdesktopsink.cpp : OOOOOOOOOOOO start dispatch
--The specified module could not be found.
vncdesktopsink.cpp : StartInitWindowthread started
vncbuffer.cpp : request local buffer[4096000]
vncbuffer.cpp : fast blits detected - using DIBsection buffer
vncbuffer.cpp : local buffer=4096000
vncDesktopSW.cpp : GetQuarterSize
vncDesktopSW.cpp : GetQuarterSize
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncencodemgr.h : raw encoder requested
vncencoder.cpp : settranslatefunction called
vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
vncencoder.cpp : settranslatefunction called
vncencoder.cpp : no translation required
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncencodemgr.h : request client buffer[4096012]
vncserver.cpp : Authenticated() done
vncclient.cpp : authenticated connection
vncbuffer.cpp : request local buffer[4096000]
vncbuffer.cpp : fast blits detected - using DIBsection buffer
vncdesktop.cpp : SethookMechanism called
vncdesktop.cpp : Sethook_restart_wanted hook=1 driver=0
vncdesktop.cpp : Hookdll status changed
vncbuffer.cpp : local buffer=4096000
vncclient.cpp : sent pixel format to client
vncclient.cpp : init update thread
vncclient.cpp : starting update thread
Mon Feb 06 18:37:59 2012
vncdesktopthread.cpp : Hook changed
vncdesktop.cpp : PostMessage(m_hwnd, WM_HOOKCHANGE
vncserver.cpp : Unable to set new desktop size
vncserver.cpp : killing auth client

vncclient.cpp : client Kill() calledvncdesktopsink.cpp : OOOOOOOOOOOO 32775 3212232
vsocket.cpp : closing socket
vncserver.cpp : KillClient() done
vncservice.cpp : SelectHDESK to Default (7d8) from 7d8
--A blocking operation was interrupted by a call to WSACancelBlockingCall.
vncclient.cpp : client disconnected : 184.73.69.130 (1)
vncclient.cpp : disable update thread
vncclient.cpp : enable/disable synced
vncclient.cpp : kill update thread
vncclient.cpp : stopping update thread
client sent 0 updates
vncclient.cpp : update thread gone
vncserver.cpp : removing authorised client
vncserver.cpp : deleting desktop server
vncdesktop.cpp : ~vncDesktop
vncdesktopsink.cpp : ~vncDesktop::Tell initwindowthread to close
vncdesktopsink.cpp : OOOOOOOOOOOO 18 0
vncdesktopsink.cpp : OOOOOOOOOOOO called wm_quit
vncdesktopsink.cpp : WM_DESTROY
vncdesktopthread.cpp : quitting desktop server thread
vncdesktop.cpp : SetBlankMonitor: monitor on, using alpha false
vncdesktopsink.cpp : OOOOOOOOOOOO end dispatch
--The requested resource is in use.
vncdesktopthread.cpp : quitting desktop server thread:SetBlockInputState
--The system cannot find the file specified.
vncdesktopthread.cpp : quitting desktop server thread:ClearShiftKeys
vncdesktopsink.cpp : ~vncDesktop:: iniwindowthread proper closed
vncdesktopthread.cpp : quitting desktop server thread:g_DesktopThread_running=false
--The system cannot find the file specified.
vncdesktopsink.cpp : ShutdownInitWindowthread
vncservice.cpp : SelectHDESK to Default (7d8) from 7d8
vncdesktopthread.cpp : quitting desktop server thread:m_desktop->Shutdown
vncdesktop.cpp : SetBlankMonitor: monitor on, using alpha false
vncdesktopsink.cpp : ShutdownInitWindowthread
--The system cannot find the file specified.
vncservice.cpp : SelectHDESK to Default (7d8) from 7d8
vncdesktop.cpp : ~vncDesktop Shutdown()
vncdesktop.cpp : ~vncDesktop m_lGridsList.clear
vncserver.cpp : desktop deleted
vncserver.cpp : RemoveClient() done
vncclient.cpp : PostAddNewClient II
vncclient.cpp : ~vncClient() executing...
vncclient.cpp : deleting socket
Mon Feb 06 18:38:00 2012
vncmenu.cpp : KillAuthClients() ID_CLOSE
vncserver.cpp : KillAuthClients() done
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
Mon Feb 06 18:38:03 2012
vncserver.cpp : AddClient() started
vncclient.cpp : vncClient() executing...
vncclient.cpp : TEST 4
vncserver.cpp : AddClient() done
vncmenu.cpp : vncMenu::Shutdown: Close menu - Disconnect all - Shutdown server
vncmenu.cpp : vncMenu WM_CLOSE call - All cleanup done
vncclient.cpp : client connected : 184.73.69.130 (1)
vncclient.cpp : DSMPlugin Pointer to socket OK
vncserver.cpp : removing unauthorised client
vncserver.cpp : RemoveClient() done
vncclient.cpp : ~vncClient() executing...
vncclient.cpp : deleting socket
vsocket.cpp : closing socket
Mon Feb 06 18:38:05 2012
vncmenu.cpp : quitting from WM_DESTROY
vncserver.cpp : KillAuthClients() done
--Invalid window handle.
vncmenu.cpp : vncmenu killed
winvnc.cpp : ################## Closing Imp Thread
winvnc.cpp : ****************** Kill SDTimer
winvnc.cpp : ################## SHUTING DOWN SERVER ####################
--Attempt to release mutex not owned by caller.
vncserver.cpp : shutting down server object1
vsocket.cpp : shutdown socket
vsocket.cpp : closing socket
--A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
--A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vncsockconnect.cpp : quitting socket connection thread
--A blocking operation was interrupted by a call to WSACancelBlockingCall.
Mon Feb 06 18:38:06 2012
vsocket.cpp : closing socket
--No connection could be made because the target machine actively refused it.
vsocket.cpp : shutdown socket
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
--A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vsocket.cpp : closing socket
vsocket.cpp : VSocket() m_pDSMPlugin = NULL
vsocket.cpp : closing socket
vnchttpconnect.cpp : quitting HTTP server thread
vsocket.cpp : closing socket
vncserver.cpp : KillAuthClients() done
--A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vncserver.cpp : KillUnauthClients() done
vncserver.cpp : ~server m_pDSMPlugin = NULL
cprice
8
8
Posts: 8
Joined: 2012-01-13 18:25

Re: Server in "Listen" mode closes immediately after connect

Post by cprice »

Hi, just thought I would update this thread.

I was unable to get this working on the standard UltraVNC server. However, I downloaded and installed SC (RC23), and it is working just great.

Thanks.
Fedia
Posts: 4
Joined: 2011-12-13 10:54

Re: Server in "Listen" mode closes immediately after connect

Post by Fedia »

have some problem on UltraVNC Server 1.0.9.6.2 if try to connect from internet PC.
one nuance:
when i already connected from other local network computer, and try to connect PC from Internet, it connected done.
if local network computer is not connected, i have "Unable to set new desktop size -> killing auth client"
Fedia
Posts: 4
Joined: 2011-12-13 10:54

Re: Server in "Listen" mode closes immediately after connect

Post by Fedia »

update to UltraVNC 1.1.8.0 and have some problem
my PC config:
Processor: Intel® Celeron® mobile processor 530/540/550
Core Logic Chipset: Mobile Intel® GL960 Express
Video Subsystem: Mobile Intel® GL960 Express Chipset with integrated 3D graphics, featuring Intel® Graphic Media Accelerator (GMA) X3100
[more]http://support.acer.com/acerpanam/noteb ... 0sp2.shtml[/more]
Sainsuper
40
40
Posts: 96
Joined: 2008-04-02 10:47

Re: Server in "Listen" mode closes immediately after connect

Post by Sainsuper »

try using this sintax:

winvnc.exe -autoreconnect -ID:12345 -connect repeaterip:443 -RUN

and check if repeater is listening correct on port 443
Post Reply