Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Detecting VNC Connect/Disconnect (Windows)

Post Reply
bzowk
Posts: 1
Joined: 2019-12-20 04:40

Detecting VNC Connect/Disconnect (Windows)

Post by bzowk »

Hey Guys -

I use VNC on all my systems and have a quick question. I'm trying to write a script which will kill a specific process whenever a user connects via VNC and execute a string to restart it once a user disconnects. What would be the best method or trigger for determining this? The only thing I could think of was to query netstat to see if port 5900 was Listening or Established, but it shows "Listening" even if someones connected. If you cant tell, I'm wanting to do this on my Windows (10) systems.

Any suggestions?

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

Re: Detecting VNC Connect/Disconnect (Windows)

Post by Rudi De Vos »

event id 1 == viewer connect
event id 3 == viewer diconnect
Using the event viewer you can add some tasks to event

Orde can be 1 1 3 3 1 3 1 3, you tasks need to take this in account

Image
Post Reply