Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 1 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

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.