Hi Derek,

Command-line parameters override any parameters read from the registry, and
VNC 4 series servers do not write to the registry.  Parameters not specified
on the command-line will be read from the registry, so you need to specify
all parameters that you want to pin down on the command-line.

You are running one copy of VNC Server in Service-Mode, and one in
User-Mode, which means that they won't use the same registry keys to store
their settings in in any case.

FYI, you appear to be passing the machine's hostname as the DisplayDevice
parameter, rather than the name of a valid display device.

Cheers,

--
Wez @ RealVNC Ltd
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Weber, Derek
> Sent: 20 November 2007 05:06
> To: [email protected]
> Subject: Config clashes while running multiple servers on one 
> Windows box 
> 
> Howdy,
> 
> I'm in a bit of a sticky situation that I hope someone can 
> help me out, without me having to modify any code. Failing 
> that, some pointers as to where to look in the RealVNC code 
> would be handy.
> 
> I'm running two VNC servers on one machine.
> 
> One runs as a system service on the default port with 
> authentication on and password "foobar", and these details 
> are stored in the Windows Registry.
> 
> The other runs occasionally (started programmatically) using 
> the commandline in user mode (ie when I ^C, the process 
> dies). It runs on a special port (53053) and either uses no 
> authentication, or if it uses authentication it has its own 
> special password.
> 
> The commandline I'm using looks like "C:\path\to\alt\vnc\winvnc4.exe
> PortNumber=53053 AlwaysShared=1 IdleTimeout=0 
> DisableOptions=1 DisconnectClients=0 SecurityTypes=None 
> DisplayDevice=myhostname" or "C:\path\to\alt\vnc\winvnc4.exe 
> PortNumber=53053 AlwaysShared=1 IdleTimeout=0 
> DisableOptions=1 DisconnectClients=0 
> PasswordFile=/path/to/password/file DisplayDevice=myhostname"
> 
> What I'm finding is that when the commandline server is run 
> without authentication (ie "SecurityTypes=None") it's picking 
> up a password from the registry and enforcing it. Also, I'm 
> noticing that the VNC system service is getting the 
> PortNumber from the commandline version.
> 
> In other words, the commandline version is reading config 
> from the Registry and writing to it.
> 
> I was hoping that by using the commandline winvnc4.exe would 
> use defaults for anything not specified on the commandline 
> and wouldn't touch (look at or change) the Registry. Is there 
> an easy way to enforce this, or should I make my own version 
> of the code that avoids the Registry? If I have to change the 
> code, are there any classes or modules I should look at first 
> (ie. an obvious severing point)?
> 
> Thanks very much in advance for your help. It doesn't sound 
> like many people are doing what I'm doing from a search of 
> the mailing lists, so any help will be very gratefully received.
> 
> Derek.
> 
> PS FYI I'm a Java developer and haven't done much C++ in a 
> while and haven't ever seen much win32 C++. I'm finding it 
> interesting to read though.
> 
> ============================================================
> Derek Weber                   Human Interaction Capabilities
> C3I Division                              Rm: 2.H.06 205Labs
> Defence Science & Technology Organisation Ph: 61 8 8259 7699 
> POBox 1500 Edinburgh South Australia 5111 Fx: 61 8 8259 5619 
> ============================================================
> 
> IMPORTANT: This email remains the property of the Australian 
> Defence Organisation and is subject to the jurisdiction of 
> section 70 of the CRIMES ACT 1914.  If you have received this 
> email in error, you are requested to contact the sender and 
> delete the email.
> _______________________________________________
> VNC-List mailing list
> [email protected]
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list
> 
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to