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
Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
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
- 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
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
- 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
- Rudi De Vos
- Admin & Developer
- Posts: 6879
- Joined: 2004-04-23 10:21
- Contact:
Re: Idle Timeout
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)
---------------------------
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)
---------------------------
Re: Idle Timeout
Rudi,
Thanks a ton for your reply. Let me go ahead, try it and will let know.
Thanks,
Vincent
Thanks a ton for your reply. Let me go ahead, try it and will let know.
Thanks,
Vincent
Re: Idle Timeout
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
I need it for single-click VNC, I dont see an ultravnc.ini file used for Single-click VNC.
Any further hints?
Regards,
Vincent
- Rudi De Vos
- Admin & Developer
- Posts: 6879
- Joined: 2004-04-23 10:21
- Contact:
Re: Idle Timeout
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
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