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

Wrote little tool for restarting crushed VNC Service...

This forum is for VNC related products | This means not only UltraVNC | It even is allowed to announce or describe commercial (and of course non-commercial) programs here (but not anywhere else in the forum)
Post Reply
TheNETCoder
8
8
Posts: 8
Joined: 2005-10-23 02:45
Location: Germany

Wrote little tool for restarting crushed VNC Service...

Post by TheNETCoder »

Hi,

i use ultravnc for a while and sometimes the service crushes without
any reason. A few days ago i was administering a remote machine
and the vnc service stopped with an exception and i lost the connection.
Then over 30 User where not able to connect to the remote machine,
because i couldnt finish my (administrative) task. The remote server
(Windows Server 2003) was located over 200 kilometers away from me
and there where no other remote tools activated except the vnc-service
that was no more accessible. Rexec Service was disabled and Telnet too.
This was a very painfull situation, because there was no other
administrator for over 8 hours and i was not there!
Then i decided to write a little tool, that restarts the vnc-service when
it stops for whatever reason it does so. Now i want to publish this tool
for free (GNU GPL). How can i do this and where can i do this...?

I am sure, that this tool will help other guys who faced a similar situation.
VNC DEAD -> NO ACCESS -> STRESS

Best Regards

Kerem Gümrükcü
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

just upload it somewhere and post the url here. by the way you can configure winvnc server to automatically restart if it crashes.
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

sorry if ask you this but why the heck are you using winvnc on a remote win2003 server? you can enable remote desktop on that, and i can assure you that i never seen one crashing... you can enable it in the same place where the xp pro remote desktop is enabled (system properties)
TheNETCoder
8
8
Posts: 8
Joined: 2005-10-23 02:45
Location: Germany

Where to enable Restart?

Post by TheNETCoder »

Hi OhMyGoat,

we (our developer team) do not (always) use the RemoteTools from MS
because of the fact, that we prefer open source and not only ms
products. And when you look and RD-Tool from MS you can see, that it
needs a lot of Bandwith (even when you disable nearly all interfaces&misc)
We also have linux and other machines to handle with vnc. This is where
the RD-Tools from MS go under.

And yes, you are right: You can configure any service that way, that
it can be restarted when it fails to start or crashes under the services
control manager or over the services managemend console.
Why didn't i had that idea, insted i programmed this tool.......damn!
But its already done and it works...next time i ask you :wink:
But if you are still interested, i can send it to you...

But how can you "restart" a service when it crashes and the os locks
the executable image with a debugger or some other intercepting
application?


Best Regards

Kerem Gümrükcü
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

ms software uses bandwith only the first time you use it but the following times it uses the internal cache that it builds so it will use a lot more bandwith. i use it on gprs connection and i can tell you that it works a lot better than vnc even with themes enabled.

the service won't restart if a debugger attaches to its process and another winvnc won't start because it still sees the other winvnc instance. in those cases there's nothing to do the only thing you can do is to disable all debuggers.

you should try to see if singleclick has those instance limit if it doesn't you could try installing my freeware utility vnc central and use it to launch single click if the winvnc hangs. however i think that leaving ms remote desktop always enabled as an alternative to control the computer is the best way.
Last edited by OhMyGoat on 2005-10-23 09:04, edited 1 time in total.
TheNETCoder
8
8
Posts: 8
Joined: 2005-10-23 02:45
Location: Germany

Post by TheNETCoder »

Hi,

i wrote i kind of "Debugger-Hook", that replaces the systems debugger
and routes any exception except the vnc service to the std debugger,
wich has been replaced by my debugger.
the vnc process (in case of exception) wont be debugged and will be
restarted if it crashes...

I think this is the best way to bypass the debugger and still provide
debugging for other executables. Special solutions for special cases...

By the Way: You wrote vnc central....very good work!

Best Regards

Kerem Gümrükcü
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

it would be nice if winvnc had an exception catcher to catch all the uncatched exceptions and relaunch itself without having the debugger to start there wouldn't be need of external utilities then :P
TheNETCoder
8
8
Posts: 8
Joined: 2005-10-23 02:45
Location: Germany

Yes...

Post by TheNETCoder »

Yes, thats true, but you know as i do: Nothing
and Nobody is perfect :|
spuri
Posts: 7
Joined: 2005-11-18 16:26

scrip

Post by spuri »

We use a short script. Kill and start vnc service in every 2 hours.
Ugly but works fine.
Post Reply