UltraVNC Server Commandline Parameters
winvnc [-sc_promt] [-sc_exit] [-id:????] [-autoreconnect[ ID:????]] [-connect host[:port]] [-connect host[::port]] [-run]
Parameters are order dependent !!
-connect host <--- would connect to port 5500
if port < 1024 +5900 is added
Sample: host:1 -> port=5901,host:21 -> port=5921
-connect host[::port] ( 2 X : )
host::21 -> port=21
Special case: host[::port] =??? == request host and port
Is used in conjunction with the -connect switch when having a server "Reverse-connect" to a listening viewer.
You can use it in a batch file for your clients that are behind a firewall that is not under your control.
The batch file looks something like this:
"c:\program files\ultravnc\winvnc" -autoreconnect -connect 220.127.116.11
On the local computer run the viewer in "listening" mode, and have someone on the server end run the batch file.
The -autoreconnect will make the server end attempt to reconnect to the listening viewer if the connection drops or is closed.
It will immediately reconnect to the listening viewer if the session is closed.
Close the listening viewer altogether in order to stop the server end from "autoreconnecting" to your computer.
The server attempts to "autoreconnect" for only a few seconds.
Note that this "autoreconnect" param must be before the "connect" one on the command line!
The id is used when using a repeater. In that case the id
identify the server to the repeater. When id is used, the
host in "-connect host..." is the repeater.
winvnc -sc_prompt -sc_exit -id:1234 -connect repeaterhost -run
Close winvnc running as service or started as application
Need to be the last parameter, tell winvnc that no more
parameters are left
This option modify some behavioiur for Single Click usage.
*Pass server info to viewer and request viewer accept
(This use an unofficial rfb protocol, require ultravnc viewer)
*Server quit when viewer disconnect
*Don't exit when desktop switch to UAC/winlogon
Internal used to be able to save to ultravnc.ini.
On >= Vista, the program folder is a protected folder and require elevated permission.
ultravnc.ini is first saved in a temp folder, then this file is red and data is copied
to the real ultravnc.ini in program files.
Start the acl editor for mslogon II
Internal switch used by uvnc_service to tell winvnc is started by a service
Internal used for the special service_commandline option in ultravnc.ini.
Stop winvnc service
Stop winvnc as application and restart winvnc as service
Install the service, require admin (<=xp) or elevated access ( >=Vista)
Uninstall the service, require admin (<=xp) or elevated access ( >=Vista)
Internal used by winvnc. The helpers are needed to simulate the current console user ( Service run as system). The start winvnc with the corresponding command line without "helper" with the "runas" option.
Sample winvnc (press install service) -->create process as current user
winvnc -installhelper -> start winvnc -install with (shellexec "runas" option)
don't check if winvnc is already running