RealVNC command-line switches

I'm creating an application for our helpdesk guys. Long story short, part of their job is to remotely administer boxes we install at client sites, and I'm trying to make that as painless as possible. To do this, I need to be able to start RealVNC from the command line, feeding it the server:port, username and password it will use to connect. The desired end result is that they hit a button in my app, and they get the remote viewer connected to the site and ready to go.

I can do this with UltraVNC, however I cannot connect to all VNC boxes using that viewer (the ones using RealVNC Server use a security config not supported by the latest version of Ultra). The only documentation I can find on RealVNC command-line configuration is to specify a config file using the -config flag.

Is there a way to pass credential information to RealVNC using the command line?


I thought I remembered that you could save the configuration(and the password in it) to be used later. I did some searching and found a good step-by-step instruction for you. Credit goes to "Angelo" for these steps.

  • Connect to the Host
  • Type in the password
  • After you are connected successfully, bring up the vnc menu - thats F8 by default or right click on title bar or in tray.
  • Choose Options
  • Click on the defaults tab
  • Click Save Configuration file as
  • After picking a location and a file name it will ask you if you want to save the password

Then you will have a file that you can double click to connect.

IMPORTANT - you are storing the password in that file, lose the file and your security is compromised.

I hope this helps!