After more 1 000 000 (one million) views on forum for 1.5.0.x development versions... and 1.6.0.0 version
A new stable version, UltraVNC 1.6.1.0 and UltraVNC SC 1.6.1.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38080
Feedback is welcome

Celebrating the 22th anniversary of the UltraVNC (25th anniversary since the laying of the foundation stone): https://forum.uvnc.com/viewtopic.php?t=38031

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

Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

Development: UltraVNC development is always here... Any help is welcome.
A new development version, UltraVNC 1.6.3.0-dev has been released, please test it: https://forum.uvnc.com/viewtopic.php?t=38091
Feedback is welcome

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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

Idle Timeout

Single Click discussions / bugs
Post Reply
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Idle Timeout

Post by vincentt »

Hi,

We are using the 1.2.1.1 version and I am trying to get the IdleTimeOut Working on single click. We were originaly using the older version and the timeout was working. However in the newer version I am unable to get the timeout working. Once we connect to a system, if the user is idle we need the VNC session to be disconnected.

In code I did see that there is a variable named - UINT m_pref_IdleTimeout in vncpoperties.h file. I have set this to an UINT value like 60, but after leaving the screen idle for 60 seconds I see no disconnection. Reducing the value to like even 4, did nothing. What am I missing here?

I read the UINT timeout value from a configuration file by saying
m_pref_IdleTimeout =m_server->readconfig();

virtual UINT readconfig() is declared in Server.h

The other place where the m_pref_IdleTimeout is used is here
m_server->SetAutoIdleDisconnectTimeout(m_pref_IdleTimeout);

And the code in VNC Server.h is
virtual void SetAutoIdleDisconnectTimeout(const UINT timeout) {m_idle_timeout = timeout;};

What else can I check or is there any other way I can do the timeout?

Thanks,
Vincent
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6952
Joined: 2004-04-23 10:21
Contact:

Re: Idle Timeout

Post by Rudi De Vos »

The idle timemout doesn't work anymore because server/viewer send keepalive messages to keep routers open.
So we needed another parameter, instead we use the idleinput, viewer doesn't use mouse/keyboard for x time

Parameter is set on server but negotiated with the viewer on connect.
Both viewer server need to be at least 1205
In source, search "IdleInputTimeout"


add
ultravnc.ini
[admin]
IdleInputTimeout=b

Remark
----------------------------
IdleInputTimeout=b
b > 60 -> disconnect after b seconds
b<60 after b seconds updates happen every 5 seconds ( slow mode)
---------------------------
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/UltraVNC
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
- uvnc2me: https://uvnc2me.com/
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Post by vincentt »

Rudi,

Thanks a ton for your reply. Let me go ahead, try it and will let know.

Thanks,
Vincent
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Post by vincentt »

Rudi,

I need it for single-click VNC, I dont see an ultravnc.ini file used for Single-click VNC.

Any further hints?

Regards,
Vincent
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6952
Joined: 2004-04-23 10:21
Contact:

Re: Idle Timeout

Post by Rudi De Vos »

Or you use 1.2.1.1 or SC ...

SC= 150k little winvnc exe
Ultravnc 1.2.1.1 winvnc.exe is almost 2000k

SC use his own old viewer and encryption plugins, you can download on top of the SC page

SC use helpdesk.txt but almost all settings are hardcoded.
Winvnc full has a lot of options in ultravnc.ini
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/UltraVNC
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
- uvnc2me: https://uvnc2me.com/
Post Reply