IWMSCPPluginAdmin.ListenAllIPAddresses (C#)

banner art

Previous Next

IWMSCPPluginAdmin.ListenAllIPAddresses (C#)

The ListenAllIPAddresses property specifies and retrieves a Boolean value indicating whether the server must monitor all IP addresses for incoming client requests.


  .ListenAllIPAddresses = bool;
bool = IWMSCPPluginAdmin.ListenAllIPAddresses;

Property Value

A bool indicating whether all IP addresses must be monitored.

Example Code

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSCPPluginAdmin CPAdmin;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the plug-in to be configured.
    Plugin = Server.ControlProtocols[
                        "WMS RTSP Server Control Protocol"];

    // Retrieve the custom interface of the plug-in.
    CPAdmin =

    // Set a Boolean value indicating that the plug-in
    // will be bound only to specific IP addresses.
    CPAdmin.ListenAllIPAddresses = false;
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
catch (Exception e) {
    // TODO: Handle exceptions.


Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.

See Also

Previous Next