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

Trying to re-connect after a disconnect

Post Reply
docfxit
40
40
Posts: 70
Joined: 2005-05-10 18:48

Trying to re-connect after a disconnect

Post by docfxit »

I am currently having trouble re-connecting when I get disconnected with UltraVNC.

My problem is after I am connected and I get disconnected the remote '98 PC still shows a currently connected Client.

How can I either:
1. Stop the disconnects.
or
2. Make the server release the client when it is disconnected so I can re-conect.

The only way I have been able to resolve it is to call up the remote site and if the VNC helper is working have them do a right click on VNC helper and select Kill all clients. If the VNC helper is not responding re-boot the PC.

Many times when I get disconnected the VNCViewer remains in memory locally also. I can resolve this with a bat file I have created.

VNCKill.bat
---- Begin bat file ----
pskill.exe -t vncviewer.exe
---- End bat file -----

If the remote PC is XP I can run a bat file on my local PC to resolve the issue.

On the local PC I run a bat file:

UltraVNC Kill on Remote.bat
---- Begin bat file ----
Set srv=domain.com
copy C:\Batch\VNCKill.bat \\%SRV%\Admin$
copy c:\Batch\pskill.exe \\%SRV%\Admin$
psexec \\%SRV% cmd.exe /C VNCKill.bat
---- End bat file ----

The domian.com can also be a PC name on a local LAN.
This will run the VNCKill.bat on a remote XP PC.

I just can't figure out how to clean up the hung processes in '98.

I'm using UltraVNC-102-Setup.exe
MSRC4Plugin.dsm ver. 1.1.8.0
VNCViewer ver. 1.0.2
in
'98
XP home
XP Pro sp1
XP Pro sp2

Thank you,

Docfxit
Dionisio
Posts: 4
Joined: 2007-03-21 07:14

Re: Trying to re-connect after a disconnect

Post by Dionisio »

1. Winvnc -autoreconnect

2. winvnc -kill

May be this helps you.

http://www.uvnc.com/install/cmdline.html
docfxit
40
40
Posts: 70
Joined: 2005-05-10 18:48

Re: Trying to re-connect after a disconnect

Post by docfxit »

Thanks for the suggestion,

I'm looking for a way to get WinVNC communicating after it hangs up when the PC's are an hour drive away from me.


I found a bat file that should do it but I can't find a program called Kill.exe that accepts command line arguments to run this.

UltraVNC Keep Alive.bat
--- Begin Bat File ---
@echo off

:loop
netstat -n | find ":5900"
if errorlevel 1 goto restartvnc
cls
echo Keeping VNC connection alive
echo !!!! DO NOT CLOSE THIS WINDOW !!!!
echo !!! DO NOT PRESS ANY KEYS OR CLICK THIS WINDOW !!!!
Timeout.exe 30

goto loop

:restartvnc

echo Connection lost Killing VNC Processes...
kill winvnc.exe

Timeout.exe 10

echo Reconnecting ...
start "C:\Program Files\UltraVNC\WINVNC.EXE"

Timeout.exe 10

goto loop
--- End Bat File ---
mattice06082
Former moderator
Former moderator
Posts: 607
Joined: 2006-11-30 00:41
Location: Connecticut, USA

Re: Trying to re-connect after a disconnect

Post by mattice06082 »

kill.exe is part of one of the Microsoft resource kits. If you don't want to download the entire resource kit, you can download PsKill.exe which does the same thing.
docfxit
40
40
Posts: 70
Joined: 2005-05-10 18:48

Re: Trying to re-connect after a disconnect

Post by docfxit »

mattice06082 wrote:kill.exe is part of one of the Microsoft resource kits. If you don't want to download the entire resource kit, you can download PsKill.exe which does the same thing.
Thanks for the reply.

PSKill won't run in Win'98. I found kill.exe in the Windows resource kit.

Thanks for letting me know where it is.

I'm getting an error with it saying:
"The Kill.exe file is linked to a missing export NTDLL.DLL isspace."

Thank you,

Docfxit
Last edited by docfxit on 2007-04-09 16:03, edited 1 time in total.
Post Reply