Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When You need to connect remotely to someone's desktop, and his computer is behind a NAT, You can use reverse VNC connection. You do it by using TightVNC Server's "Attach Listening Viewer" option. It requires manual selection of that option, and manual typing of IP adress.

Is there a way to avoid this manual activity by creating shortcut ( command line ) with fixed IP address and port ?

share|improve this question
    
Which operating system? – Daniel Andersson Apr 18 '12 at 9:21
    
Microsoft Windows 7 – malloc4k Apr 18 '12 at 9:46
up vote 2 down vote accepted

I found the answer. To do it use simple command like this:

"c:\Program Files\TightVNC\tvnserver.exe" -controlservice -connect ip-address:port-number

For ip-addres Use IP address of the computer that runs actual VNC client ( which is about to control the desktop )

share|improve this answer

Shortcut for launching the server as user app (for those not running it as service) and connecting.

C:\Windows\System32\cmd.exe /C start "" "%PROGRAMFILES%\TightVNC\tvnserver.exe" -run && timeout 1 && "%PROGRAMFILES%\TightVNC\tvnserver.exe" -controlapp -connect IPADDRESS

share|improve this answer

I want VNC to a local computer at IP 10.0.1.11 using a desktop shortcut so I can just double click it. The above did not work. Using help (in CMD) I find the instructions to be:

tvnviewer hostname::port [OPTIONS]

Example that works using TightVNC:

  1. Create a shortcut on your desktop from the 'Program Files' folder (or x86)

  2. Right-click the shortcut, choose Properties.

  3. In the 1st editable line labeled 'Target:' add this after the string that is already there: 10.0.1.11::5900 so your string now looks like this:

"C:\Program Files\TightVNC\tvnviewer.exe" 10.0.1.11::5900

Obviously change 10.0.1.11 to whatever IP address you want to control. Also go to the General tab and change the name of the shortcut to something appropriate like "Connect to Laptop" or "My Mac", etc.

Tested on my Windows 8.1 Pro PC with TightVNC 2.7.10.0.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.