UltraVNC calls programs, only for windows (because UltraVNC only has windows version). Build a relay server based on UltraVNC Repeater, and use this program to assist in calling UltraVNC Server and Viewer to realize the remote desktop function in a complex network environment.
2.0 version modified the command line parameters, you can use -h or -help to view the help.
Please refer to my blog post: https://tudan.blog.csdn.net/article/details/100214799
Project structure description- Pay attention to the configuration file config.properties
# Project development mode (dev: development and testing; others are release versions, if released, you can use release, there is no mandatory requirement, you can understand by reading the code)
system.develop.mode=dev
Please put it under the same level directory as the jar package, because the configuration file obtained from the "path where the current program is located"
String settingPath = ClassUtils.getCurrentProgramPath() + "/ultravnc-call.setting";
Explanation of parameters:
-
The number, unique, must be a number, and at least three digits (that is, the minimum is 100, the maximum is 2147483647)
-
Winvnc.exe path (optional parameter)
-
Repeater server IP (optional parameter)
-
Repeater UltraVNC Server listening port (optional parameter)
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-server-starter-1.0.jar 90699 ["C:/Program Files/uvnc bvba/UltraVNC/winvnc.exe"] [10.20.16.48] [5500]
Version 2.0 modified the command line parameters
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-server-starter-1.0.jar -id 90699 [-dir "C:/Program Files/uvnc bvba/UltraVNC/winvnc.exe"] [-ip 10.20.16.48] [-port 5500]
Explanation of parameters:
- Process name (optional parameter)
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-server-stoper-1.0.jar [winvnc.exe]
Version 2.0 modified the command line parameters
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-server-stoper-1.0.jar [-i winvnc.exe]
Explanation of parameters:
-
The number, unique, must be a number, and at least three digits (that is, the minimum is 100, the maximum is 2147483647)
-
vncviewer.exe path (optional parameter)
-
Repeater server IP (optional parameter)
-
Repeater UltraVNC Viewer monitoring port (optional parameter)
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-viewer-starter-1.0.jar 90699 ["C:/Program Files/uvnc bvba/UltraVNC/vncviewer.exe"] [10.20.16.48] [5901]
Version 2.0 modified the command line parameters
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-viewer-starter-1.0.jar -id 90699 [-dir "C:/Program Files/uvnc bvba/UltraVNC/vncviewer.exe"] [-ip 10.20.16.48] [-port 5901]
For ultravnc.ini to take effect, system services must be installed. This is not recommended. You can use the first three interfaces.
Explanation of parameters:
-
The number, unique, must be a number, and at least three digits (that is, the minimum is 100, the maximum is 2147483647)
-
Ultravnc.ini configuration file path (optional parameter)
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-ini-modifier-1.0.jar 90699 ["C:/Users/tudan/Desktop/ultravnc.ini"]
Version 2.0 modified the command line parameters
# Brackets [] represent optional parameters, if not filled, the corresponding default value in the configuration file will be used
java -jar ultravnc-ini-modifier-1.0.jar -id 90699 [-dir "C:/Users/tudan/Desktop/ultravnc.ini"]
-
Get the session id
http(restful) interface, get method
http://localhost:9081/usm/api/id
-
Release the session id
http(restful) interface, delete method
http://localhost:9081/usm/api/id?sessionId=1536406588