INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

VNC Connection shortcuts

VNC Connection shortcuts

(OP)
I use VNC to connect to lots of different PC's which are used as CCTV systems. Is there a way i can have a shortcut on my desktop which will log me straight into a particular PC?


Thanks in advance

RE: VNC Connection shortcuts

I'm using Ultra VNC viewer, and it supports a hostname option, so I create a shortcut with this in the target field:

C:\Program Files\UltraVNC\vncviewer.exe computername

I use the actual computername in the above line, and it connects just by double clicking on the link.

RE: VNC Connection shortcuts

1) Connect to one of the PC's using VNC then either right-click on the VNC titlebar or press CTRL+ALT+F5. This should give you an option to save the connection info as a file.

2) Save the connection info as a .VNC file using a descriptive name, e.g. '192.168.23.50.VNC' or 'CAMERA1.VNC'. You'll be prompted whether you want to save the password in the file. You could save the file direct to the desktop but I suggest you save it elsewhere, e.g. 'My Documents\My Connections\'.

3) Create a shortcut on your desktop pointing to the location of the .VNC file, e.g. to y Documents\My Connections\CAMERA1.VNC. This let's you re-name the shortcut to just, e.g. 'Camera 1' without having to have a .VNC extension.

4) Create an association for .VNC files by opening a command prompt, navigating to the VNC installation directory then typing:

vncviewer -register

Now, when you click on the desktop shortcut it will use VNC to open the connection automatically. You will or won't be prompted for the password depending on whether or not you saved the password with the connection file.

You can do this for manually for each of your connections or copy/paste the .VNC file as a new file and just amend the IP address to point to another PC.

The file format of the .VMC file is below:

Quote:


[connection]
host=192.168.23.50 (for example purposes only)
port=5900
password=**************** (real password hidden)
[options]
use_encoding_0=1
use_encoding_1=1
use_encoding_2=1
use_encoding_3=0
use_encoding_4=1
use_encoding_5=1
use_encoding_6=0
use_encoding_7=0
use_encoding_8=0
use_encoding_9=0
use_encoding_10=0
use_encoding_11=0
use_encoding_12=0
use_encoding_13=0
use_encoding_14=0
use_encoding_15=0
use_encoding_16=1
preferred_encoding=5
restricted=0
viewonly=0
fullscreen=0
autoDetect=1
8bit=0
shared=1 (1 = multiple connections; 0 = single connection)
swapmouse=0
belldeiconify=0
emulate3=1
emulate3timeout=100
emulate3fuzz=4
disableclipboard=0
localcursor=1
scale_num=1
scale_den=1

Note that the asterisks and bracketed info above won't appear in your own connection file. Note also that you can copy and paste the password from the registry by navigating to:


HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default


On the right-hand side you will see a key for 'Password'. Just double-click on it and you'll be able to copy the password data.

Hope this info helps...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources