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

VNC Reflector Setup Help

This forum is for VNC related products | This means not only UltraVNC | It even is allowed to announce or describe commercial (and of course non-commercial) programs here (but not anywhere else in the forum)
Post Reply
Emdy
20
20
Posts: 33
Joined: 2008-09-19 08:27
Location: Los Angeles, USA

VNC Reflector Setup Help

Post by Emdy »

Hi, pls help me to setup vnc-reflector, properly. thanks.
and also vnc SC server & vnc viewer.

For the sake of this discussion, for Example, lets say :
- - - - - - -
my internet server's IP address is 71.72.73.71 .
( server : CentOS Linux, Hosting Service Provider shared srvr, php, mysql, perl, shell, apache, dedicated IP, ssl, etc ) .
we can call it "Reflector Server", or Server Computer, or VRFL-SRVR, or RFL-Srvr, also.
- - - - - - -
my home computer's public IP is : 71.72.73.72 .
i'm behind router + nat + firewall.
my local IP is : 192.168.10.72 .
my router is configured with port forwarding : from 5900 to 5901 ports are forwarded toward 192.168.10.72 .
windows xp. i've installed Ultra VNC viewer & server both.
- - - - - - -
my friend John's DSL connection's public IP is : 71.72.73.73 .
his laptop computer is behind router + nat + firewall.
its local IP is : 192.168.10.73 .
windows xp. he is very basic / novice level user.
- - - - - - -

Code: Select all

  vnc-srvr  ---> reflector-srvr <--- vnc-vwr. 
71.72.73.73 ---> 71.72.73.71 <--- 71.72.73.72 .
     John   --->  VRFL-Srvr  <---   Emdy.
- - - - - - -
i'm trying to help him solve his laptop computer's problem. and to setup a system, so in future i can help others also.
- - - - - - -
i've created new rc4.key (by using UVNC server software), and i've renamed the plugin "MSRC4Plugin_NoReg.dsm" into "MSRC4Plugin.dsm", and placed it with "rc4.key" file in the main & all sub folders ... same 2 files in multiple locations.
There are 2 host entry in SC srvr & in "helpdesk.txt" :
[HOST]
Connect - Option 5902
-connect 71.72.73.71:5902 -noregistry
[HOST]
Connect - Option 5902 Encrypted
-plugin -connect 71.72.73.71:5902 -noregistry
then i've created the Ultra VNC Single Click (SC) server software, with offline creator, called [topic=7991]UltraVNC SC Generator[/topic] (SCG). It created sc.exe ( "the vnc-srvr" ) . Renamed it. Then placed it on a webpage, lets assume/say its downloadable from here ... emdy2n.com/vrf/emdy_help_uvnc-sc.exe .
And i'm 100% sure, i enabled "DSM plugin" for the second host entry, inside SCG, and selected+browse the rc4.key from subfolder.
But after generating "sc.exe", i've Noticed (after i decompressed it or opened it inside the decompression software), that, SCG is not including those 2 files (dsm+key), though all other files are there ! what's wrong ? or a bug in SCG ?
This uvnc sc srvr softwr will/supposedly connect my friend, John's PC to the reflector srvr. and after that, the reflector srvr will help his computer to connect to my home computer, so that ultimately i can control his mouse, keyboard for troubleshooting.
- - - - - - - -
vnc-reflector :
i've compiled & placed executable & all other files in : /home/emdy2n/public_html/vrf
- - - - - - -
"start_vrf.sh" file (chmod 700) : (see my next post msg for correction)
./vncreflector -p passvrf -i pidvrf -l 5901 -t hostsvrf -g logvrf -q
- - - - - - -
"hostsvrf" file (chmod 600) : (see my next post msg for correction)
*.5902 psw0rdsa1
- - - - - - -
"passvrf" file (chmod 600) :
psw0rdfa1
psw0rdra1
- - - - - - -
when i run the start_vrf.sh in shell access, "logvrf" contains :
19/09/08 01:37:04 + Starting VNC Reflector 1.2.4
19/09/08 01:37:04 - Switched to the background mode
19/09/08 01:37:04 * Using only 8 first bytes of a longer password
19/09/08 01:37:04 * Host display not specified, assuming display :0
19/09/08 01:37:04 + Connecting to *.5902, port 5900
19/09/08 01:37:04 ! Could not get host address: Success
19/09/08 01:37:04 + Terminating
- - - - - - -
whats wrong ?

reflector not getting host address ! ? !
should i specify -b option to bind the reflector with server's IP ?
why is it terminating ? it should be keep on running until i kill the process pid.

~ Emdy. 09-19-2008 fri 3:15 AM GMT-08:00.

EDIT NOTE: please See Next Post for further Correction.
Last edited by Emdy on 2008-09-29 02:32, edited 5 times in total.
Emdy
20
20
Posts: 33
Joined: 2008-09-19 08:27
Location: Los Angeles, USA

Re: VNC Reflector Setup Help

Post by Emdy »

... little bit improvement ...
finally i was able to run the vncreflector executable in linux.
it was exiting, because of wrong codes in "hostsvrf" file :
it should have been this correction :
- - - - - - - -
*:5902 psw0rdsa1
- - - - - - - -
only first 8 char of a pass is used by VNC.

and the "start_vrf.sh" should be this, below code :
- - - - - - - -
./vncreflector -i pidvrf -p passvrf -l 5901 -g logvrf -q -t hostsvrf
- - - - - - - -

this [topic=11812]thread[/topic] also talked about vnc reflector.

Problem :
now if i or my friend tries to download & run the (single-click) SC server & connect to the reflector server, it doesn't connect, it says "Establishing connection...", but then it exits !
log shows ...
19/09/08 19:03:59 + Starting VNC Reflector 1.2.4
19/09/08 19:03:59 - Switched to the background mode
19/09/08 19:03:59 * Using only 8 first bytes of a longer password
19/09/08 19:04:00 + Listening for host connections on port 5902
19/09/08 19:35:47 + Accepted host connection from 71.72.73.73
19/09/08 19:35:47 - Remote RFB Protocol version is 3.16
19/09/08 19:35:47 * Protocol sub-version does not match (ignoring)
19/09/08 19:35:47 + No authentication required at host side
19/09/08 19:35:48 + Remote desktop geometry is 1280x800
19/09/08 19:35:48 - Remote desktop name: WinVNC
19/09/08 19:35:48 + Activating new host connection
19/09/08 19:35:49 ! Unknown encoding: 0x00000010
19/09/08 19:35:49 * Closing connection to host
- - - - - - -

After starting the "vncreflector" executable in the Reflector Server, If i try to connect to it, with my computer's UVNC viewer immediately after starting it, it fails to connect !

In vnc viewer i used 71.72.73.71::5901 to connect.

But if try to connect, after someone else has already tried (at least once) to connect, through SC server or reverse mode vnc server, Then my computer's UVNC viewer can connect, After specifying the full control pass "psw0rdfa1" to the Reflector Server, only,
But not to Friend's computer.
My vnc viewer keeps on showing empty blank blck screen.
log file showed ...
19/09/08 19:36:31 + Accepted connection from 71.72.73.72
19/09/08 19:36:55 + Full-control authentication passed by 71.72.73.72
- - - - - - -

Problem :
why my vnc viewer software is not able to connect to Friend's computer through/via the reflector server ?
is it because of something wrong with SC server file ? which is not able to connect to reflector server ?

~Emdy. 09-19-2008 fri 9:27P GMT-8:00.

EDIT : please See my Next Post for further Correction.
Last edited by Emdy on 2008-10-07 04:10, edited 5 times in total.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: VNC Reflector Setup Help

Post by redge »

the dsmplugin limited actually to single connection.

msrc4plugin.dsm
Last edited by redge on 2009-02-24 23:24, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Emdy
20
20
Posts: 33
Joined: 2008-09-19 08:27
Location: Los Angeles, USA

Re: VNC Reflector Setup Help

Post by Emdy »

I've opened sc.exe inside 7-zip to see its files, which was created with SCG, it did not include msrc4 plugin dsm file, neither the rc4.key file. So i've manually added those 2 files inside.

And removed the -t option from the command line of vnc-reflector, then re-started it.

After that, i'm getting bit different error msg now. When John tried to connect, log file (logvrf) showed ...
22/09/08 13:53:24 + Accepted host connection from 71.72.73.73
22/09/08 13:53:24 ! Wrong greeting data received from host
22/09/08 13:53:24 * Closing connection to host
22/09/08 13:53:24 + Terminating

i had to restart the VncReflector program back, after that !

- - - - - - -

then i tried to connect as a vnc server host with the VncReflector server, It Worked. Log file (logvrf) showed ...
22/09/08 14:21:22 + Accepted host connection from 71.72.73.72
22/09/08 14:21:22 - Remote RFB Protocol version is 3.16
22/09/08 14:21:22 * Protocol sub-version does not match (ignoring)
22/09/08 14:21:22 + No authentication required at host side
22/09/08 14:21:23 + Remote desktop geometry is 1024x768
22/09/08 14:21:23 - Remote desktop name: WinVNC
22/09/08 14:21:23 + Activating new host connection

So John should be able to connect to the reflector srvr as well.
- - - - - - -

Success (Partial) :
i was able to remote control other computers (win-xp, win-vista) in my home, by using SC vnc-srvr, which are behind my same router (same public ip).
i got very slow response from vista machines though.
i will see what can be done to speed it up more, any suggestions ?
- - - - - - -

@ redge, this moment, I'm tryin only single conection. Since this isn't workin, i'm mostly tryin to conect w/o encrptn. I'm just includin option, to conect with encrptd stream session, when non-encrptd seson start workin.
shudn't vwr be able to conect with vnc-srvr host ? w/o stream encrptn, easily ?
even when both side initiates Encrptd seson, shudn't VRF-srvr still work ?

@ redge, r u sayin more than 1 vnc-srvr won't be able to connect to 1 session ? what if i use multiple instance of vnc rf ?

~ Emdy . Sep22,2008,Mon,2:51P,GMT-08:00.
Last edited by Emdy on 2008-09-25 21:13, edited 6 times in total.
Emdy
20
20
Posts: 33
Joined: 2008-09-19 08:27
Location: Los Angeles, USA

Re: VNC Reflector Setup Help

Post by Emdy »

made a start & stop script :

# start_vrf.sh
# VNC-Reflector Starter & Checking Script.
# copyright 2008 Emdy. Contact : emdy 01 (at) g mail (dot) com .
# Released under these terms :
# 1. This script, associated functions and HTML code ("the code")
# may be used by you ("the recipient") for any purpose.
# 2. This code may be modified in any way deemed useful by
# the recipient.
# 3. This code may be used in derivative works of any kind,
# anywhere, by the recipient.
# 4. Your use of the code indicates your acceptance of these terms.
# 5. This notice must be kept intact with any use of the code to
# provide attribution.
# - - - - - -
VNCRFR=0
if test -f pidvrf.5901 ; then
VNCRFR=1
fi
if test -f killpidvrf ; then
VNCRFR=1
fi
if test $VNCRFR -eq 0 ; then
echo "Starting VncReflector ..."
./vncreflector -i pidvrf -p passvrf -l 5901 -g logvrf -q hostsvrf
echo "...Done."
chmod 600 logvrf
chmod 600 pidvrf.5901
echo -e "kill `cat pidvrf.5901`" > killpidvrf
chmod 600 killpidvrf
else
echo "VncReflector is already Running !"
fi
#end of "start_vrf.sh"

- - - - - - - - -

and here is the "stop_vrf.sh" script :

# stop_vrf.sh
# VNC-Reflector Stopper/Terminator & Checking Script.
# copyright 2008 Emdy. Contact : emdy 01 (at) g mail (dot) com .
# Released under these terms :
# 1. This script, associated functions and HTML code ("the code")
# may be used by you ("the recipient") for any purpose.
# 2. This code may be modified in any way deemed useful by
# the recipient.
# 3. This code may be used in derivative works of any kind,
# anywhere, by the recipient.
# 4. Your use of the code indicates your acceptance of these terms.
# 5. This notice must be kept intact with any use of the code to
# provide attribution.
# - - - - - -
VNCRFR=0
if test -f pidvrf.5901 ; then
VNCRFR=1
fi
if test -f killpidvrf ; then
VNCRFR=1
fi
if test $VNCRFR -eq 0 ; then
echo "Most likely VncReflector is Not Running !"
else
echo "Stopping VncReflector ..."
echo -e "kill `cat pidvrf.5901`" > killpidvrf
chmod 700 killpidvrf
./killpidvrf
rm -f pidvrf.5901
rm -f killpidvrf
echo "...Stopped."
fi
# end of "stop_vrf.sh"

~ Emdy . Sep22,2008,Mon,8:57P,GMT-08:00.
Last edited by Emdy on 2008-09-23 07:01, edited 4 times in total.
Emdy
20
20
Posts: 33
Joined: 2008-09-19 08:27
Location: Los Angeles, USA

Re: VNC Reflector Setup Help

Post by Emdy »

Success :
John was able to connect and i was able to remote-control his Computer. He was using Win XP and me too.

Our connection speed was much slow, when i moved pointer, it took 2 or 3 seconds to move the mouse-pointer in John's computer. If i started windows Explorer in his machine, it takes almost 10 seconds to finally see that explorer in my screen.

How can it be made faster ?

Lower color depth connection ? what command line (CL) option can be used in the vnc-SC-server winvnc.exe, and what option for vncviewer.exe ?

~ Emdy . Sep23,2008,tue,6:38P,Gmt-08:00.

- - - - - - - -

EDIT NOTE :

CLI (command line interface) options : http://www.uvnc.com/install/cmdline.html

vncviewer.exe /8bit /swapmouse /shared /belldeiconify /listen (portnum) /fullscreen /viewonly /notoolbar /scale a/b /config configfile server:display /emulate3 /quickoption n /serverscale n /askexit /user msuser /password clearpassword /nostatus /dsmplugin pluginfilename.dsm /autoscaling /autoreconnect delayInSeconds /nohotkeays /proxy proxyhost (portnum) /256colors /64colors /8colors /8greycolors /4greycolors /2greycolors /encoding ( zrle | zywrle | tight | zlib | zlibindex | ultra )

uvnc viewer config :
http://www.uvnc.com/install/viewerconfig.html

- - - - - -

from my win-xp, i've connected to vnc reflector server first from vncviwer.exe by using following host::port 71.72.73.71::5901 , then used the feature "Connection Options.." ( Ctrl+Alt+F6 ) to configure it further for slow connection to speedup, then used the feature "Save Connection Info As.." ( Ctrl+Alt+F5 ) to save the config file as "VRFL-S.vnc".

then i've used "copy" & "paste shortcut" to create a shortcut of "vncviewer.exe" inside the UltraVNC folder. then went inside its Properties, and added in the "Target" field, further command line options.

"C:\Program Files\UltraVNC\vncviewer.exe" /shared /config VRFL-S.vnc /password psw0rdfa1 /logfile vrfl-s.log

Configuration in the "Connection Options" window :
Format & Encoding : [ ] auto select best settings (unselected) :
[✓] ZRLE (selected) . (•) 64 Colors.
[✓] Use Copy/Rect Encoding. [✓] Use Cache Encoding. [✓] Zip/Tight Compression: 6. [✓] Jpeg(Tight) - Quality: 6.
Mouse & Keyboard : [✓] Emulate 3 buttons. (•) Track remote cursor locally.
Display : [✓] Show Buttons Bar / Toolbar. Server Screen Scale by: 1 / 1.
Misc : [✓] Share the Server. [ 0 ] number of retry.

to get bullet mark : numlock on, Alt+0149 . for tick mark use "& #10003;" (remove space in between the "&" and "#" ) .

Are those options right ?
should i disable the "Jpeg(Tight)" option, will it speedup more ?

~ Emdy . Sep23,2008,tue,11:28P,Gmt-08:00.
Last edited by Emdy on 2008-09-29 02:38, edited 5 times in total.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: VNC Reflector Setup Help

Post by JDaus »

I must have missed this post in my travels through this forum ... this may come in handy for collaboration sessions in vnc2me ... i will see what i can do with it ... awesome :)
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: VNC Reflector Setup Help

Post by redge »

securevncplugin allow shared multi connection and require ultravnc server 1.0.9.x and above or special custom version of adzm 1.0.8.2
[topic=15853][/topic]
Last edited by redge on 2011-01-02 16:34, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Post Reply