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 viewer disconnect when logging off or user switchin

Post Reply
babeman92
Posts: 2
Joined: 2021-05-17 08:22

UltraVNC viewer disconnect when logging off or user switchin

Post by babeman92 »

Dear all,

First of all, thanks to all of you for your work.

We are implementing the latest version of UltraVNC (1.3.2 64bits) on Windows 10 20H2 machines with encryption plugins (secureVNCPlugin64.dsm)
UltraVNC is running as a service.

Everything is working fine, except when we try to log off or try to switch user remotely.
At this time the UltraVNC Viewer is loosing connection.
Obviously, we can reconnect and process login again normally, but it would be nice to be able to remain connected!

I found a similar thread, and tried to set QueryAccept=2 and QueryIfNoLogon=0
https://community.spiceworks.com/topic/ ... ch-log-off
I also tried to set my port to auto as mentioned.
But it's a vert old thread (2013), and didn't manage to maintain my connection.

I just wanted to know if some other persons had experienced something similar?
And if you have any advice on how to solve it!
I attach below my ini file, if you want to reproduce (I return to my default settings)
Thanks for your help

Best
Damien

[ultravnc]
passwd=<SECRET>
passwd2=<SECRET>
[admin]
DSMPluginConfig=SecureVNC;0;0x00104001;<SECRET>
UseRegistry=0
SendExtraMouse=1
Secure=1
MSLogonRequired=0
NewMSLogon=0
DebugMode=0
Avilog=0
path=C:\Program Files\uvnc bvba\UltraVNC
accept_reject_mesg=
DebugLevel=0
DisableTrayIcon=1
rdpmode=0
noscreensaver=0
LoopbackOnly=0
UseDSMPlugin=1
AllowLoopback=0
AuthRequired=1
ConnectPriority=0
DSMPlugin=SecureVNCPlugin64.dsm
AuthHosts=+<My IP>
AllowShutdown=0
AllowProperties=0
AllowInjection=0
AllowEditClients=0
FileTransferEnabled=1
FTUserImpersonation=1
BlankMonitorEnabled=1
BlankInputsOnly=0
DefaultScale=1
primary=1
secondary=0
SocketConnect=1
HTTPConnect=0
AutoPortSelect=0
PortNumber=5900
HTTPPortNumber=5801
IdleTimeout=0
IdleInputTimeout=0
RemoveWallpaper=0
RemoveAero=0
QuerySetting=2
QueryTimeout=10
QueryDisableTime=0
QueryAccept=0
QueryIfNoLogon=1
InputsEnabled=1
LockSetting=0
LocalInputsDisabled=0
EnableJapInput=0
EnableUnicodeInput=0
EnableWin8Helper=0
kickrdp=0
clearconsole=0
[admin_auth]
group1=
group2=
group3=
locdom1=0
locdom2=0
locdom3=0
[poll]
TurboMode=1
PollUnderCursor=0
PollForeground=0
PollFullScreen=1
OnlyPollConsole=0
OnlyPollOnEvent=0
MaxCpu2=100
MaxFPS=25
EnableDriver=0
EnableHook=1
EnableVirtual=0
SingleWindow=0
SingleWindowName=
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: UltraVNC viewer disconnect when logging off or user swit

Post by Rudi De Vos »

It's a design issue.
Each user tun in his own session
service = session0
user1= sessio1
user2= sessionx

The desktop part of vnc, that also contain the network connection need to be running in the active session.
When you have only one user the logon en user have the same session but when you have multiple users the logon can be in another session.

Each time the active session switch the vnc service restart the desktop part in the new active session, this cause a disconnect.

The viewer has the option reconnect and reconnecttime ( sample: 3x 10 sec). If this is set, the viewer reconnect in background without the need to reenter a password. The viewer try 3 times with a 10s interval.
babeman92
Posts: 2
Joined: 2021-05-17 08:22

Re: UltraVNC viewer disconnect when logging off or user swit

Post by babeman92 »

Hi Rudi,

Thanks for your quick reply!
We will play with session timeout, in order to succeed automatic re-connection!
Best
Post Reply