IVMVirtualServer::VMRCAdminAddress property

The VMRCAdminAddress property contains the TCP/IP address of the host network adapter over which VMRC connections are accepted.

This property is read/write.

Syntax

HRESULT put_VMRCAdminAddress(
  [in]  BSTR vmrcAdminAddress
);

HRESULT get_VMRCAdminAddress(
  [out] BSTR *vmrcAdminAddress
);

VB
VMVirtualServer.VMRCAdminAddress( _
  ByRef vmrcAdminAddress, _
  ByVal vmrcAdminAddress _
)

Property value

The TCP/IP address of the host network adapter over which VMRC administration connections are accepted.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The parameter vmrcAdminAddress referenced NULL.
E_INVALIDARG
The parameter vmrcAdminAddress is not a valid TCP/IP address for the host.
E_OUTOFMEMORY
There is insufficient memory to retrieve the address.
E_FAIL
The address could not be retrieved.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

If this property retrieves a zero-length string, the VMRC connections are accepted from all host network interfaces.

Setting this property to a zero-length string allows VMRC connections to be accepted from all host network interfaces.

Examples

The following example displays the VMRCAdminAddress property value of the VMVirtualServer object.

Set objVS = CreateObject("VirtualServer.Application")
Wscript.Echo "Name: " & objVS.Name

If objVS.VMRCAdminAddress = "" Then
  Wscript.Echo "VMRC admin address: [all]"
Else
  Wscript.Echo "VMRC admin address: " & objVS.VMRCAdminAddress
End If

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualServer