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 and listen mode

Post Reply
Patrick259
Posts: 6
Joined: 2016-05-05 13:07

Repeater and listen mode

Post by Patrick259 »

Hi!

I hope this wasn't asked before but I cannot find it anywhere.

I'm trying to set up VNC for connection but I am having some issues. I am out of port on my router so I need to use the repeater instead of directing the port to the computers.

I was able to get it working in Mode II but not mode I for some reason. I can use both mode here so one or the other will do fine.
The problem I have is I need to be in listen mode and it doesn't work at all.
First of all, is it possible to use the -listen with the repeater? I am using the SC also to connect.
I'm using repeater v2.00 and vncviewer 1.2.1.0

Here is my setup for full info, I'm gonna use internal addess just to show how it's setup.

Repeater computer: 192.168.1.40
Computer 1: 192.168.1.50 (it has vncviewer, set with ID 111)
Computer 2: 192.168.1.60 (vncviewer also, with ID 222)

computer 3 will use the SC to connect

setup for computer 1:
from the executable shortcut:
c:\program files (x86)\ultravnc\vncviewer" -proxy 192.168.1.40:5901 ID:111
same for computer 2 but with ID 222 of course.


works well if I send the connection that way but if I try to use the -listen I get
""""error creating listening daemon
(error binding daemon socket)
perhaps another vncviewer is already running?""""


I need to be able to receive more than one connection without having to restart the vncviewer everytime.
If the -listen cannot be used with mode II, can it be set with mode I? if so I'll get back with the details to get my mode I working

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

Re: Repeater and listen mode

Post by Rudi De Vos »

When you use ID, you make outgoing connection.
Server -->nat router->internet -->repeater
viewer-->nat router -->internet -->repeater

A repeater is used to bypass the nat router

But looking at your ip addresses al seems to be local. What are you actual trying to do ?
Patrick259
Posts: 6
Joined: 2016-05-05 13:07

Re: Repeater and listen mode

Post by Patrick259 »

Hi!

I've used internal address here as example. We do use external address and it works.
What I need is the "-listen" mode that doesn't work when I use the repeater.

We are trying to set it so when we need to help someone they can use our SC and connect to us. So far it is working fine but we are out of port so we need to use the repeater.
I need to have it so that when someone tries to connect to us it works right away without having to open the vncviewer everytime.
I've used the command vncviewer.exe" -listen 5602 in the past (5602 was the port at that moment we used) and it worked fine but if I try to use the -listen with the repeater I get the error noted above.
Is there a way to set the vncviewer with the repeater and the listen?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Repeater and listen mode

Post by Rudi De Vos »

You can on the same server
I just tested in a cmd
vncviewer -proxy 192.168.1.40:5901 ID:111 >>> this is an outgoing port, no listener
vncviewer -proxy 192.168.1.40:5901 ID:11 --> this is another outgoing port , no listener
vncviewer -listen >> listen to 5500 default
vncviewer -listen 5501 -->listen to port 5501
I have 4 vncviewers running simultanious without any problems.

The error you see is when you
vncviewer -listen 5510
vncviewer -listen 5510 >>>>> then you get an error that the port is already used

I'm missing something...i guess i still don't understand what you actual are doing.


The repeater use 2 listener ports ( defaults are )
saved_portA=5901;
saved_portB=5500;

If the repeater is running and you start on the same pc vncviewer -listen
Then you get also get that error, because repeater and vncviewer -listen on the same default port.
In that case change repeater the dfaults port for the repeater or the viewer
Patrick259
Posts: 6
Joined: 2016-05-05 13:07

Re: Repeater and listen mode

Post by Patrick259 »

Ok now I'm starting to understand. I was using the same computer as the repeater for my test for the listen with the vncviewer. Tried on another computer and not getting the error but it is not connecting to the repeater.

Sorry if I am hard to understand.

Here is what I am trying to do:

computer outside (the one that wish to connect) is using the single click SC, so far no issue on this.
Computer A is set as the repeater with port 5901 (IP: 192.168.1.40) which is fine so far
Computer B receives the connection with vncviewer and this is where I am having issues

If I set computer B vncviewer like this:
vncviewer.exe" -proxy 192.168.1.40:5901 ID: 111
If I use the SC from the outside I am able to connect fine and I do see the connection to the repeater in the log of the repeater.

But this way, I need to open the vncviewer each time I want to get a connection. I wish to use the -listen so that it will always be active and receive the connection at all time.

If I use vncviewer.exe" -proxy 192.168.1.40:5901 ID:111 -listen
it runs but does not connect on the repeater (nothing shows on the log of the repeater) and I cannot get a connection from the SC
So basically, I would like my vncviewer to receive a connection at all time without me having to restart it each time I get a connection
IS it possible to set it to connect to the repeater and listen to incoming connection at same time?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Repeater and listen mode

Post by Rudi De Vos »

Try ( normal you use -autoreconnect -connect, but possible it also work with -proxy)

vncviewer -autoreconnect 5 -proxy 192.168.1.40:5901 ID:111
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Repeater and listen mode

Post by Rudi De Vos »

doesn't work the parameters can't be used with proxy.

workaround that someone made
http://forum.ultravnc.info/viewtopic.php?t=15527
Patrick259
Posts: 6
Joined: 2016-05-05 13:07

Re: Repeater and listen mode

Post by Patrick259 »

oh great thanks I'll get a look into it
Post Reply