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

connection loss sometimes

Post Reply
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

connection loss sometimes

Post by Henk »

Hi,

I downloaded and installed ultrVNC server and the viewer on another pc. When I make a connection to the server it sometimes works and sometimes I get my screen for 1 second and then the connection is broken.

What can be the problem?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6865
Joined: 2004-04-23 10:21
Contact:

Re: connection loss sometimes

Post by Rudi De Vos »

Active the viewer reconnect, viewer options.
This happen in background.

In some cases, like after logon the server need to reinitialze, this
cause the server to reconnect.
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

Can you explain it a little bit more because I don't completely understand what you say.

Is there a setting to solve this problem?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6865
Joined: 2004-04-23 10:21
Contact:

Re: connection loss sometimes

Post by Rudi De Vos »

Sorry, my bad

The vncviewer has an option called "reconnect".
viewer -> option button
If you put a value in this field 1-5, the viewer auto reconnect
to the server in case connection is lost. ( Like when the server reset)
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

But why is the connection broken? That should not happen in the first place.
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

This happened with a connection from the internet but also from inside the lan...
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6865
Joined: 2004-04-23 10:21
Contact:

Re: connection loss sometimes

Post by Rudi De Vos »

The connection break because we implemented it in the server this way.

This is needed because from Vista, you have isolated sessions.

The server is started in the logon session, but after logon all happen in
the user session. Winvnc started in the logon session is isolated and can't interact with the user desktop.
The service notify this and tell winvnc that he need to stop in the logn session and restart in the user session.... this is the break you see.

This is indeed independed of the network.

In the future, we possible move the network part to the service, so we can keep the network alive and just restart the input/capture part.
But this has other disadvantages
ISA proxy is user based and service run as system
Many firewalls are user based...

I hopes this clarify it a little.
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

Does this happen when you connect FROM a vista pc or does this happen when you connect TO a vista pc?

Why is it that sometimes it does work and sometimes it doesn't?

Will the connection remain after auto reconnecting (using the option you mentioned)? (I will test it when I can)


If you answer in Dutch, thats ok for me too...
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6865
Joined: 2004-04-23 10:21
Contact:

Re: connection loss sometimes

Post by Rudi De Vos »

If you add the autoreconnect option, the viewer stay open and wait in
background for the server to be available again ( 1-5 sec)

The breaks happen on session change
-windows logon
-windows logoff
-switch user

All other breaks are not normal. Only some Wifi networks intend to reset
the connections on heavy load.
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

And why is this behaviour not happening all the time?

At my place, I have a vista pc with VNC server and an xp client with VNC viewer and here I have no problem connecting to the vista pc.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6865
Joined: 2004-04-23 10:21
Contact:

Re: connection loss sometimes

Post by Rudi De Vos »

Because it depend on the number of sessions and the almost
random use with multiple users.

user 1 logon session1
desktop user 1session1
switch user session1
desktop user 2 session2 --> break
logoff user 2 session2
logon user 1 sessionX -> break
desktop user1 session1
desktop user 1
rdp connection
logon user1 sesseonX -> breaks
desktop user 1 session1
Henk
8
8
Posts: 8
Joined: 2009-12-01 23:19

Re: connection loss sometimes

Post by Henk »

I still don't get it.

Is there something I can do to test this at my place?
I have a vista pc with vnc server and an xp with vnc viewer.

What should I do exactly so after I connect to the server and I entered the password, the connection is immediately lost?
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: connection loss sometimes

Post by redge »

Henk

anyway the known limitation of viewer lost connection
can you use vncviewer quickoption other than auto
quick option auto is not very well.

winvnc -autoreconnect -connect host
vncviewer -autoreconnect -connect host
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: connection loss sometimes

Post by redge »

Henk wrote: What should I do exactly so after I connect to the server and I entered the password, the connection is immediately lost?
nothing
winvnc should improve their way for catch logon/logoff vnc/rdp

anyway,
not possible until 1.0.8.0 under certain conditions
Logon user A
switch user B
Logoff user B

possible reconnect with ultravnc 1.0.8.1 (25 nov) and above is possible.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Post Reply