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

viewer port gets closed

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

viewer port gets closed

Post by winmansoft »

what could be the probable reason for viewer port getting closed suddenly and customer receiving error "connection to the repeater was not possible".


i think it may be helpful if u could say where the socket is created and bind to the port and made to listen...
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

Interesting issue....

Could you be more specific about your setup?

Which repeater are you using? Windows/Linux?
Is the repeater on the same network as the viewer?
Are you running ChunkViewer in LAN mode?
Does it work sometimes and then stop?
Have you changed any of the default ports during compile?

Basically ChunkViewer will just open a socket connection to the repeater on whatever viewer port you set during compile.
If ChunkViewer isn't able to open a socket connection to the repeater it won't allow you to use it as the UltraVNC viewer it launches will also not be able to connect.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

Which repeater are you using? Windows/Linux?---- windows
Is the repeater on the same network as the viewer? ---- no
Are you running ChunkViewer in LAN mode? ----- no
Does it work sometimes and then stop? ------ cannot tell specifically....it stops randomly
Have you changed any of the default ports during compile? ------ in chunkvnc compiler- repeater ports are viewer 5901 server 5501
but in repeater listen port viewer 29051 listen port server 28051

probably the error comes because the repeater stops working(so may be the port is closed).....now why does the repeater stops working suddenly...how to keep the repeater running...restarting the repeater solves the problem...but it terminates all existing connection....which i don't want to happen...please help me with this

we are using mode II
Last edited by winmansoft on 2013-06-28 11:46, edited 1 time in total.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

The repeater crashing would explain your problem.

Most repeater crashes I've noticed are caused when InstantSupport has been installed as a service and continues to reconnect to the repeater for a long (over a day) period of time.

Either try the linux repeater or try installing the Windows repeater as a service and adjust the service properties to restart after a crash.


repeater.exe -install (install as service)
repeater.exe -remove (remove service)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

but would adjusting the service properties to restart after crash prevent it from terminating existing connection

and i assumed that the repeater stops working(or crash) because we are using mode II and according to https://forum.ultravnc.net/viewtopic.php?f=3&t=27416

in mode II ports are opened by the repeater and in our case restarting the repeater solves our problem...(am I wrong somwhere in my assumption) and what is meant by

"Since the Repeater is publicly accessible on port 5900 for the Viewer and port 5500 for the Server "



some more issue :
the repeater has no problem when using pcHelpWare...why is it so
sometimes this problem is there when the customer has a particular antivirus....and if open the viewer port from the customer side it works

so there be some issue

and how to run repeater as service...and it is running in website
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

All connections would be terminated if the repeater crashes but the server will reconnect after the repeater comes back up.

I believe the issue is caused by the old version of the UltraVNC server that comes with the current ChunkVNC package as others have stated the crashing has gone away after updating the server executable.

You can manually update the SRC\InstantSupport_Files\winvnc.exe file to the newest UltraVNC server executable and recompile InstantSupport to hopefully fix the issue.

Keep in mind that the Linux repeater does not seem to be affected by this crash and may be a better option for you.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

thanks for your reply
I'm using the wnc.exe version 1.0.9.6.....should i download a newer one...which version and where to download it from
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

You can download "bin zip w32 xp-win7 1190" from uvnc.com.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

"Since the Repeater is publicly accessible on port 5900 for the Viewer and port 5500 for the Server "


can i have the exact meaning of this line....

and can we try to put a digital signature on winvnc.exe

can there be some other problem because its not the viewer port always now sometimes server port also gets closed(i.e sometimes 29051 amd sometimes 28051)...

so i would be glad if you make me understand what is meant by
"Since the Repeater is publicly accessible on port 5900 for the Viewer and port 5500 for the Server " and can this line be the cause of any problem(i.e can it be that port are not being accessible or something)
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

please suggest me if replacing winVNC.exe is the solution to our problem...since recently we have also observe server ports getting close

sometimes presence of escan antivirus also causes the problem
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

The repeater acts like a proxy, sitting in the middle between the server and viewer. All data for the session is passed through the repeater meaning that the viewer and server can both be behind a NAT firewall, without having to worry about forwarding ports or anything else (providing the repeater is visible to both viewer and server).

You'll have to try replacing the winvnc.exe file on your own as I don't have time to test it currently.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
winmansoft
8
8
Posts: 21
Joined: 2011-11-09 06:48

Re: viewer port gets closed

Post by winmansoft »

only replacing the winVnc.exe says it requires higher version of viewer

from your post in viewtopic.php?f=3&t=27416 i knew that t the viewer and server does not have to worry about forwarding ports or anything else
but again what do you mean by:" providing the repeater is visible to both viewer and server"
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: viewer port gets closed

Post by supercoe »

Then try to replace the viewer executable as well....

Read my previous post, I have no other way of explaining what the repeater does.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Post Reply