WinVNC Server
(This article is translated and adapted from the official document of VNC. If you need more detailed and more exact information, please see the official documentation www.realvnc.com.
Author somerset (darzui@yahoo.com.cn)
First edition (will be updated and corrected later)
General Options (in the Properties window)
Accept Socket Connections
(By default) The server accepts the direct, Socket-based connection sent from the VNCVIEWER program. If not, no connection is accepted.
Display Number
The connection number specified when the customer Viewer is connected (set in the VIEWER's address input box). Usually do not need to be changed, keep the default value.
Auto
Select, the server automatically selects unused connections; hosted, specify the use of the connection number to be used.
Password
Develop a connection password, customer viewer needs to enter this password
Enable Java Viewer
The client can use the Java Applet access server in the browser with the HTTP: // server IP: 5800 connection number.
When Last Client Disconnects
When the last customer is disconnected, you can choose to do the following:
1) nothing
2) Lock the computer
3) Logout
Disable Remote Keyboard & Pointer
The client can see the screen of the server, can not operate on time
Disable Local Keyboard & Pointer
Can only work in NT / 2000 / XP. During the connection, the server local keyboard and mouse will not be operated.
REMOVE Desktop Wallpaper
Whether to remove the server desktop wallpaper during the connection to avoid waste of bandwidth.
Poll Full Screen
When the customer has operation, update the entire screen.
Poll Foreground Windows
When the customer has operation, only the window is updated at the foremost
Poll Window Under Cursor
When the customer has operation, only the window below the cursor
Poll Console Widows ONLY
Poll on Event Received Onley
(The above POOL options, I found that it seems that there is no impact on the actual effect, the server always sends all the window updates to the client)
advanced settings
Some parameters of WinVNC need to specify in the registry, may be in the following locations below the registry:
1) Local machine settings: The settings here will not be overwritten by the settings of other locations.
HKEY_LOCAL_MACHINE / SOFTWARE / ORL / WINVNC3 /
2) Local default user settings:
HKEY_LOCAL_MACHINE / SOFTWARE / ORL / WINVNC3 / DEFAULT
3) Local user settings: The settings here will overwrite "local default user settings), if there is no current user, use System users
HKEY_LOCAL_MACHINE / SOFTWARE / ORL / WINVNC3 /
4) Global User Settings: Only AllowProperties (below will be mentioned) Set to 0, can only read the settings here
HKEY_CURRENT_USER / Software / Orl / WinVNC3
Is AlloweditClient displays "Add New Client" and "Disconnect All Clients" menu items. Local user settings
ALLOWOPBACK
Whether to allow Viewer to connect to Server on the same machine. Local machine settings
ALLOWPROPERTIES
Whether it allows the Properties dialog to be viewed. Local user settings
ALLOWSHUTDOWN
Whether it is allowed to close WinVNC. Local user settings
Authhosts
REG_SZ string type, specify a list of IP templates, only clients that match this template allow connections. The list is empty, and anywhere's connection is allowed. The form of the template is as follows:
[ip-address-template]
? [ip-address-template]
- [IP-Address-Template]
[ip-address-template] represents the leftmost part of the IP address. For example, 158.97 matches 158.97.12.10 and 158.97.14.2. The multiple templates are separated from ":", and the back template will cover the front. For example, -: 158.97 will filter all connections other than the 158.97 header IP. If the client IP is in the "?" Header template, then the server will pop up a dialog box that prompts whether to allow this client to be connected. The QuerySetting option will determine the accurate behavior of the Authhosts option. Local machine settings
AuthRequired
By default, any connection will not be accepted unless the server password is set to a value that is not empty. This is for safety considerations. Set this value of 0 will cancel the empty password check. Local machine settings
AutoportSelect
The WinVNC automatically uses the first available number, and the "Auto" option in the Properties dialog is the same. Local user settings or global user settings
ConnectProiority
By default, when a non-shared connection is verified, the WNC server disconnects other connections. This option specifies that when a non-shared connection is accepted, the behavior of the server:
0: Disconnect all existing connections
1: Constantly open other connections
2: Reject this new connection
Local machine settings
Debuglevel, Debugmode
Some settings to the log file
DEBUGMODE specifies to record the log.
1 = MSVC debugger
2 = Output to Winvnc.log file
4 = Output to the console window
You can also combine the above numbers, such as DEBUGMODE = 6 will result in both the Winvnc.log file and output to the console window.
DEBUGLEVEL specifies how much information is recorded, which can be any positive integer. The default is 0, that is, nothing is recorded. 10-12 will result in all DEBUG information. Local machine settings
HttpConnect
Whether the Java Applet client is allowed to connect, and "Enable Java Viewer" in the Properties dialog is the same. Local user settings or global user settings
IDletimeout
This option tells WinVNC, how much time does not operate, disconnect. If it is not set or set to 0, there is no timeout limit. Local user settings or global user settings
INPUTENABLED
Whether to allow the client to control the server. "Disable Remote Keyboard and Pointer" in the Properties dialog. Local user settings or global user settings
Locksetting
When all connects are disconnected, the server's behavior
0: Nothing
1: Lock computer
2: Logout
Local user settings or global user settings
LoopbackOnly
Only accepts the connection of Server on a machine. This setting will override the AllowLoopback and Authhosts settings. Password
Connect the password. Local user settings or global user settings.
Pollundercursor, PollForeground, Pollfullscreen, ONLYPOLLCONSOLE, ONLYPOLLONEVNET
The same as the above mentioned above. Local user settings or global user settings
Portnumber
Set the port number of the VNC, first prohibit AutoPortSelect, and then set this. Local user settings or global user settings
QuerySetting
Used to customize the setting of AUTHHOST for configuring " ", "?", "-" these three symbols. It is DWORD value, ranging from 0 to 4 (security is getting higher and higher). The following lists how this value affects AUTHHOSTS behavior.
0 - : accept,?: Accept, -: query
1 - : accept,?: Accept, -: Reject
2 - : accept,?: Query, -: reject [default]
3 - : query,?: Query, -: reject
4 - : query,?: Reject, -: Reject
By default, it is considered that the value is 2. Local user settings and global user settings
QueryTimeout
Whether to allow the connection dialog to automatically reject the connection after the connection dialog is displayed (see Authhost and QueryString options). Local user settings and global user settings
RemoveWallpaper
The same effect as the Properties dialog box. Local user settings or global user settings
SocketConnect
The same effect as the Properties dialog box. Local user settings or global user settings
VnChooks-Advanced Settings
WinVNC uses a special library vnchook to other running programs to capture the screen change zone (here "changing the area" is a noun phrase). Vnchook Sends a message to the visible window to determine which screen locations need to be updated. Because not all programs use the same way to update the screen, you need to adjust WinVNC to adapt to different needs. These configurations are in the registry:
HKEY_CURRENT_USER / SOFTWARE / ORL / VNCHOOKS / Application_prefs
User_getupdaterect
USE_TIMER
Uses_keypress
Use_lbuttonup, use_mbuttonup, use_rbuttonup
Uses_deferral
Command line parameters
-run
Run WinVNC and ignore the back command line parameters. For example, Winnvc -Run -Install will only run VNC without performing -install
-install
Register WinVNC for Windows service
-reinstall
Remove WinVNC service, then register as service
-remove
Remove WinVNC service
-Settings
Displays the User Properties window that is running, displays the current user's configuration. If there is no WinVNC is running, it will not work.
-defaultsettings
Displays the Default Properties window that is running, displays the default configuration. If there is no WinVNC is running, it will not work.
-kill
Close all running WinVNC
-about
Display the ABOUT window running WinVNC.
-connent [Host]
Let the running WinVNC to the viewer that is developing host. The role of this command is the same as the "Add New Client" menu item. some problems
Question of color
experiment procedure:
1) On Liuqian, connect DBServer, both ends of the desktop are 32-bit color, and no number of colors changes.
2) When Liuqian sets the 16-bit true color, it is found that the DBSERVER window title blocks the color gradient tomography.
Experimental results:
VNC can transmit 32-bit true color desktop
Let VNC Server run as a service (Service)
Method 1: Select "Register VNC Server Service" from the VNC menu group of the start menu
Method 2: Run the command line: Winvnc -Install
Send CTRL Alt Del to the server
This function doesn't seem to work. . .