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

Repeater

Post Reply
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Repeater

Post by Rudi De Vos »

REPEATER V2

VncRepeater port

The new repeater can be used in 2 cases

1) Internal
2) External

1) Internal Use (Pre RC16B)

Internal network (10.0.0.0)
Internet connection (Router 145.90.3.45)

Without the repeater you need to forward a port to each PC on your network (from router)
+5900->10.0.0.1
+5901->10.0.0.2
+5902->10.0.0.3

When you run the repeater on 10.0.0.1, you only need to forward 1 port, 590010.0.0.1
The repeater then connect further to an other internal server 10.0.0.2 10.0.0.3…..as many as you like

To make this work, an extra field is added on the viewer Proxy/Repeater.

To make a connection to a server, you need to specify the final destination (10.0.0.2 or the name this server is known by the PC where the repeater runs)
In the VNC Server Field you need to enter the official ip address of the router. (145.90.3.45:5900)

Making a connection to the PC where the repeater is running
1) enable loopback (server props)
2) make sure repeater and vncserver has a different port number

Proxy/Repeater:145.90.3.45:5900
Host: 10.0.0.1:5901
------------------------------
Example. Thanks Jason

Scenario as shown here:

Viewer PC --> external router (with port forwarding)-->VNC_Repeater Machine (repeater.exe 5901)--> Any other machine (including repeater machine)

216.109.118.65 (forward 5900-->5901)->192.168.1.1 (Internal IP of repeater machine)-->192.168.1.5 (internal ip address of any machine)

You must run the winvnc server and repeater on different ports. The easiest way to do this is to run “vnc_repeater 5901” where 5901 is the port you want the repeater to run on. In this case, you would forward from your router port (216.109.118.65) 5900 from the outside to this machine (192.168.1.1) on port 5901. Then you must enable local loopback connections on the server (192.168.1.1). You can then connect to this server by typing this servers private ip (192.168.1.1-192.168.1.255) in the connect to box and the public ip (216.109.118.65) in the repeater box. You can then also connect to any other machine on the network in the same manner. Put the private ip (any IP which 192.168.1.1 has access to) or name in the connect to box and the public ip of your router (216.109.118.65) in the repeater box.
----------------------------------------




1)External use (RC16B)

Both vncserver and viewer are behind a router (NAT)

To make this work, an extra field is added on the VncServer outgoing connection “ID code”

+You need to run the repeater on a machine that is on the internet (dmz) port 5900 and port 5500 has to be reachable from the internet.

I think it is easyer to explain with a sample.
You want to give support to a customer who’s PC is on a local NAT network, (vncserver)
And your PC is on your company network, also behind a router.

Your company has a machine in the dmz zone, full connected to internet or where at least ports 5900 and 5500 are forwarded to so that it looks like he is connected to the internet.
(145.90.3.45=support.mycompany.com)

Your PC has an inernal address 172.20.1.1
The Customers internal PC 192.168.1.1, as usual he don’t know his official internet address :wink:

1) Run the repeater on support.mycompany.com
2) Start your vncviewer:
Proxy/Repeater support.mycompany.com:5900
VNC Server ID:XXXXXXXXX (free to choose, between 1-999999999)
3) The customer Click “Add new Client” vncserver
4) Host Name: support.mycompany.com
5) ID code ID:XXXXXXXXXX (Same code is you used for the viewer)
The order does not matter, first viewer then server or invers, but for security it is better that you start the viewer first.


The repeater can keep a list of max 20 servers and 20 viewers waiting for a connection.
A connection that is not used within 5 minutes is broken, viewer or server initiation is disconnected.
Post Reply