1.2.2.1 "-connect HOST" does not work

1.2.2.1 "-connect HOST" does not work

Postby ReD » 2018-07-12 13:48

I use the following to initiate the connection from remote hosts and it's not working anymore.
Code: Select all
"C:\Program Files\uvnc bvba\UltraVNC\winvnc.exe" -connect dave.idp.it

At the same time, the "add new client" function in the menus works as usual.
ReD
 
Posts: 2
Joined: 2018-07-12 12:47

Re: 1.2.2.1 "-connect HOST" does not work

Postby Thomas Levering » 2018-07-12 20:31

I use this Parameter with Repeater -> working (Application Mode)
Code: Select all
-connect myrepeater.com:5500 -autoreconnect -id:1234 -run
Thomas Levering
8
8
 
Posts: 13
Joined: 2015-01-23 06:45

Re: 1.2.2.1 "-connect HOST" does not work

Postby Thomas Levering » 2018-07-13 07:08

I can Confirm, add Client to Service with cmd is not working (UAC?)

this works:
winvnc.exe -startservicehelper

Code: Select all
UltraVNC.ini
[admin]
...
service_commandline=-connect dave.idp.it
...



This is not working, Port+Autoreconnect+Id are ignored (Application Mode)
Code: Select all
winvnc.exe -run
winvnc.exe -connect myrepeater.com:5500 -autoreconnect -id:1234


This is not working, no Client added (Application Mode and Running Service Ignored)
Code: Select all
winvnc.exe -connect myrepeater.com:5500 -autoreconnect -id:1234 -multi -run
Thomas Levering
8
8
 
Posts: 13
Joined: 2015-01-23 06:45

Re: 1.2.2.1 "-connect HOST" does not work

Postby Rudi De Vos » 2018-07-13 08:40

winvnc.exe -connect host : inject a connection in a running winvnc
winvnc.exe -connect host -run: start a winvnc, and connect to

Without the -run, the command try to send a message to the running winvnc. With the latest OS's and there security settings,
the message can be blocked.

The problem is also a security issue. Do you allow a normal program winvnc.exe started from commandline without any security level to control a service running at the higher security leven !!!

with -multi you can run 2 winvnc simultanious. But they must use seperated ports.
if service use port 5900, the manual start winvnc with -Multi must use another port the 5900 ( sample 5901)
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5618
Joined: 2004-04-23 10:21

Re: 1.2.2.1 "-connect HOST" does not work

Postby Thomas Levering » 2018-07-13 13:10

with this small Patch I can make a Repeater Connection in Application Mode and Ignore a Running Service
The Parameter "-multi" must be the first with this Patch


Multi PostMessageToThis and not to other Instance
Code: Select all
vncservice.cpp

extern BOOL SPECIAL_SC_EXIT;
extern BOOL SPECIAL_SC_PROMPT;
extern BOOL multi;
in6_addr G_LPARAM_IN6;

........

PostToWinVNC(UINT message, WPARAM wParam, LPARAM lParam)
{
   // Locate the hidden WinVNC menu window
   // adzm 2010-02-10 - If we are in SC mode, then we know we want to only post messages to our own instance. This prevents
   // conflicts if the user already has another copy of a WinVNC-derived application running.
   if (multi || SPECIAL_SC_EXIT || SPECIAL_SC_PROMPT) {
      return PostToThisWinVNC(message, wParam, lParam);
   }

   //adzm 2010-02-10 - Finds the appropriate VNC window
   HWND hservwnd = FindWinVNCWindow(false);
   if (hservwnd == NULL)
      return FALSE;

   // Post the message to WinVNC
   PostMessage(hservwnd, message, wParam, lParam);
   return TRUE;
}


1.2.2.1
Code: Select all
vncservice.cpp

extern BOOL SPECIAL_SC_EXIT;
extern BOOL SPECIAL_SC_PROMPT;
in6_addr G_LPARAM_IN6;

.........

PostToWinVNC(UINT message, WPARAM wParam, LPARAM lParam)
{
   // Locate the hidden WinVNC menu window
   // adzm 2010-02-10 - If we are in SC mode, then we know we want to only post messages to our own instance. This prevents
   // conflicts if the user already has another copy of a WinVNC-derived application running.
   if (SPECIAL_SC_EXIT || SPECIAL_SC_PROMPT) {
      return PostToThisWinVNC(message, wParam, lParam);
   }

   //adzm 2010-02-10 - Finds the appropriate VNC window
   HWND hservwnd = FindWinVNCWindow(false);
   if (hservwnd == NULL)
      return FALSE;

   // Post the message to WinVNC
   PostMessage(hservwnd, message, wParam, lParam);
   return TRUE;
}
Thomas Levering
8
8
 
Posts: 13
Joined: 2015-01-23 06:45


Return to 1.2.2.x

Who is online

Users browsing this forum: No registered users and 1 guest