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

Things I had to dig for - SC with Repeater

Single Click discussions / bugs
Post Reply
Doyen
Posts: 1
Joined: 2006-10-27 17:51

Things I had to dig for - SC with Repeater

Post by Doyen »

It's taken me several hours of digging through the forums to find parts and pieces of answers to make SC work with a Repeater. I thought I'd list some of those things here to help make things easier for the next guy.

1) I setup my repeater behind a firewall, but there are cases where both the SC server and the Viewer might be external. I opened both ports 5500 and 5900 to allow for sc and the viewer to link to the repeater from external connections. (this allows my bosses to take a copy of SC home so I don't have to make house calls anymore) In the following helpdesk.txt script examples, I've used your.website.com in place of the external IP address of the firewall. If you are using SC on an internal network, you'll use the internal IP address instead.

3) The order of syntax in line 2 of the [HOST] section must be in the right order.
I originally incorrectly entered:

-connect your.website.com:5500 -id 1234 -noregistry
THIS DOESN'T WORK

and I still don't see why it didn't work but -id must come before -connect:

THIS IS THE RIGHT WAY
-id 1234 -connect your.website.com:5500 -noregistry


and for encrypted connection it should be:

-proxy -id 1234 -connect your.website.com:5500 -noregistry

3) For some reason the MSRC4Plugin.dsm I originally downloaded didn't work and caused the SC to close in error. First off, be sure to place both this file and the rc4.key file into your custom folder (the instructions I followed originally didn't say to copy the MSRC4Plugin.dsm file, just the rc4.key one).

once I had done that, the MSRC still gave errors . I fought it for the longest time, then I found this thread: [topic=3278][/topic]

If your encryption doesn't work, start from scratch and follow this guys instructions (thank you REDGE! :) )

4) For some reason my firewall wouldn't allow port forwarding of 5500. I don't know why (probably because it's old), but I got around it by just using 5501 (I did the same thing with 5901 instead of 5900). I forwarded these two ports to the repeater server, then went into the settings of the repeater program and changed the ports to match. Be sure to change "restrict all ports" to 0 so that it allows both server and viewer connections in ModeII.

5) It took a LOT of tries to get everything in the helpdesk.txt file correct. Instead of having to make a new .exe file every time, use WinRAR to open a previous .exe file and copy the winvnc.exe file into your custom folder (the one with the helpdesk.txt file). You can run this file prior to zipping up the folder... it works just like the .exe file without having to build the .exe file every time.

6) The repeater log is your friend. You can watch the log and see when/if the SC and viewer programs have made connections. you can also see error messages if you did something wrong. This was helpful when I couldn't get port 5500 to forward to the repeater. I changed to 5501 and could see immediately that this new port worked as expected.

7) When connecting to a repeater, you use IDs to link the SC (or UVNC server) and the viewer together. In the Viewer, the Server name is listed as ID:1234 and the repeater is the repeater IP followed by the port number (5901 in my case). For the ID you can use any numbers you want, but it must have the ID: in front of it. I attempted several connections with just the numbers before I realized that ID: was required.

Conversely, when editing the [HOST] section of the helpdesk.txt file, I tried using -id ID:1234 like the guide tells you to. This didn't work for me. Once I removed the ID: everything worked properly. My script looks like this:

-id 1234 -connect my.website.com:5501 -noregistry
(my.website.com resolves to the external IP of my firewall)



I'm sure I'll think of more, but hopefully this will aid those who follow in my footsteps.
jgreg311
Posts: 2
Joined: 2006-12-11 22:40

Re: Things I had to dig for - SC with Repeater

Post by jgreg311 »

Very nice summary, thanks!
I, too, was very close at getting it to work, but was having difficulty. The key that made it all clear was that the SingleClick add-on actually makes the client act as the server. Therefore, the ports you specified to use in the helpdesk.txt file and on the "suppporter" VNCViewer may sound reversed to other confused users out there, but ARE indeed correct.

There is one correction I'd like to make to your enormously useful post:
Doyen wrote: and for encrypted connection it should be:
-proxy -id 1234 -connect your.website.com:5500 -noregistry
This should read:
-plugin -id 1234 -connect your.website.com:5500 -noregistry


The following are just some comments I'd like to add in response to what you've mentioned...
Doyen wrote: 3) ... the instructions I followed originally didn't say to copy the MSRC4Plugin.dsm file, just the rc4.key one
I agree... I found nowhere that mentions needing the dsm file in the custom.zip file when creating the SC exe. Thanks for bringing this up!
Doyen wrote: Conversely, when editing the [HOST] section of the helpdesk.txt file, I tried using -id ID:1234 like the guide tells you to. This didn't work for me. Once I removed the ID: everything worked properly.
I found this VERY confusing too. Why on earth must you use a "ID:" prefix in the viewer is beyond me. It's not like you can confuse a single integer value with an IP address or computer name. Not to mention that if the "Proxy/Repeater" option is selected, then the "VNC Server" MUST be the ID!


Again, thanks for your post, it gave me the last few bits of info I needed to get this to finally work!
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Things I had to dig for - SC with Repeater

Post by redge »

pchelpware secure and fast, this the sc replacement but not VNC compatible.

made for easy remote support, easy creation of pchelpware_server for give to your partner.
[topic=8628][/topic]

download pchelpware beta18 or higher
http://www.pchelpware.com/download/index.html
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
jgreg311
Posts: 2
Joined: 2006-12-11 22:40

Re: Things I had to dig for - SC with Repeater

Post by jgreg311 »

I've read quite a bit about PCHelpWare on this forum, and it looked promising, but it seems to not be where I'd need it to be in order to use it.

I saw another thread where someone made some disparaging comments about the UI of the "server" (or whatever the support personnel side is called). Now, I understand this is all volunteer development... and as a developer I know the time it takes to work on something like this, so I can sympathize, but I have the same opinions... it just doesn't seem ready for prime-time.
I might very well be interested in throwing together a UI of my own, but as another poster to this forum has indicated, I'd need more documentation about the API available, for both the client and server.

Another issue I had with PCHelpWare was that I didn't find any instructions or help with regards to getting it to work with a repeater. This would be a requirement for me as both the support personnel and clients are potentially behind routers/firewalls.

Thanks for your responses, good luck with the project.
Post Reply