Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

uVNC Server CLI

Post Reply
ian
Posts: 2
Joined: 2013-11-05 12:23

uVNC Server CLI

Post by ian »

Hi,

We want to use uvnc server in our online support client software for our users. We designed our client as a separate executable which asks some parameters, establish ssh tunnels to our server and then try to start uvnc server process with -connect option.

However we have problems with UAC. How can we combine -connect option with -service option in order to overcome UAC issue?
Is there another way to do this?

Thanks
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: uVNC Server CLI

Post by Rudi De Vos »

-service is not a user commandline, it's used by the uvnc service to start winvnc.

winvnc -install ( install the service)
net start uvnc_service ( start the service)
also see
http://forum.ultravnc.net/viewtopic.php?f=5&t=30490
net stop uvnc_service
winvnc -uninstall
ian
Posts: 2
Joined: 2013-11-05 12:23

Re: uVNC Server CLI

Post by ian »

Thanks a lot.

This is my UltraVNC.ini file:

Code: Select all

[UltraVNC]
service_commandline=-autoreconnect -connect 127.0.0.1:5500
I tried
vncviewer -listen
and
winvnc -install
net start uvnc_service

Though vnc server seems to start up normally, no connection to viewer is made. Am I doing something wrong?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: uVNC Server CLI

Post by Rudi De Vos »

Try
net stop uvnc_service
winvnc.exe -autoreconnect -connect 127.0.0.1:5500 -run
you can test the commandline you are using for the service_commandline by adding -run, the difference is that
you proper get the popups ( like when the firewall ask access). If it works on the command line the try it
as service

Tested it on my system
vncviewer -listen
When you hover over the icon you see viewer listen port 5500
Then i start
winvnc.exe -autoreconnect -connect 127.0.0.1:5500 -run
It connect, if you first start the server then it take 30 sec before a new connect try is made.
Post Reply