Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The ListenAllIPAddresses property specifies and retrieves a Boolean value indicating whether the server must monitor all IP addresses for incoming client requests.
IWMSCPPluginAdmin.ListenAllIPAddresses = bool;bool = IWMSCPPluginAdmin.ListenAllIPAddresses;
Property Value
A bool indicating whether all IP addresses must be monitored.
Example
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 =
(IWMSCPPluginAdmin)Plugin.CustomInterface;
// 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.
}
Requirements
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.