Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

How to initiate a session from server -> viewer via command line?

Here you will find help for frequently asked questions as well as for your specific question
Post Reply
User avatar
enkidu
Posts: 4
Joined: 2024-02-23 11:38

How to initiate a session from server -> viewer via command line?

Post by enkidu »

Hi,

UltraVNC server (latest) is running as service on a Win11 professional host.


I tried with

Code: Select all

winvnc.exe -connect myhost.domain
but nothing happens.


When I use "Add new client" via gui, it works. But I need it via cmdline.

Any help is appreciated.


Tnx in advance,
Enkidu
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6867
Joined: 2004-04-23 10:21
Contact:

Re: How to initiate a session from server -> viewer via command line?

Post by Rudi De Vos »

Try
winvnc.exe -connect myhost.domain -run
User avatar
enkidu
Posts: 4
Joined: 2024-02-23 11:38

Re: How to initiate a session from server -> viewer via command line?

Post by enkidu »

I already tried -run, but winvnc tells me "already running", because the service is already running.
(And I need it as service because of UAC.)
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6867
Joined: 2004-04-23 10:21
Contact:

Re: How to initiate a session from server -> viewer via command line?

Post by Rudi De Vos »

Admin properties
Reverse connection
service initiated inverse connection
{ -autoreconnect -connect myhost.domain}
User avatar
enkidu
Posts: 4
Joined: 2024-02-23 11:38

Re: How to initiate a session from server -> viewer via command line?

Post by enkidu »

Rudi De Vos wrote: 2024-02-27 21:00 service initiated inverse connection
Well... Seems that I do not understand what to do...

I added my viewers hostname in admin properties.
My viewer is up and running, hostname + ip are correct.

But how can I initiate the server connecting to my viewer?

I tried "net start uvnc_server" and it starts. But no connection.
I tried "winvnc.exe -autoreconnect", "winvnc.exe -connect MYHOSTNAME" and also "winvnc.exe -autoreconnect -connect MYHOSTNAME".
But nothing.

Where's my misunderstanding?
How can I initiate a connection from server to listening client?

Tnx.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6867
Joined: 2004-04-23 10:21
Contact:

Re: How to initiate a session from server -> viewer via command line?

Post by Rudi De Vos »

winvnc Server admin properties (systray)
You have
Reverse connection
--------------------------------
Connect to listening viewer [start]
Server initiate invers connection
[-autoreconnect -connect ip_viewer]

enter -autoreconnect -connect ip_viewer and press start
User avatar
enkidu
Posts: 4
Joined: 2024-02-23 11:38

Re: How to initiate a session from server -> viewer via command line?

Post by enkidu »

Rudi De Vos wrote: 2024-04-03 20:21 winvnc Server admin properties (systray)
That's nearly what I currently do. I use "Add new client" in tray icon menu.

But this is not very convenient. You always have to manually add data. And you have to know where ecc.
For my 88yo mother this is normally too much.

I'd like to have a batch that can be double-clicked and gives all necessary data to server so that the server connects to client.

Is there really now way to do so?

In the past, I used a script just containing "winvnc.exe -connect MYVIEWER" and all worked fine. But this stopped working quite a while ago... :yell:
docfxit
40
40
Posts: 71
Joined: 2005-05-10 18:48

Re: How to initiate a session from server -> viewer via command line?

Post by docfxit »

You can make it very easy for your mom by installing a free program called VNC Control. You can set it up with any parameters you like. You can set it up so she puts in a password or you can have the program put in the password. All she has to do is start the program and do one click to select the PC to connect to. If UAC comes up turn it off. She doesn't need it. Just make sure she has a good Antivirus installed and running on her PC. You can download it at: https://theoffice.la/vnc/
Post Reply