IWHSInfo.OpenRedirectedPort Method
Creates a port-forwarding rule on a UPnP certified router that is connected to the server.
Namespace: Microsoft.HomeServer.SDK.Interop.v1
Assembly: Microsoft.HomeServer.SDK.Interop.v1 (in microsoft.homeserver.sdk.interop.v1.dll)
Usage
Syntax
'Declaration
Sub OpenRedirectedPort ( _
<InAttribute> TCP As Integer, _
<InAttribute> internalPort As Short, _
<InAttribute> externalPort As Short _
)
void OpenRedirectedPort (
[InAttribute] int TCP,
[InAttribute] short internalPort,
[InAttribute] short externalPort
)
void OpenRedirectedPort (
[InAttribute] int TCP,
[InAttribute] short internalPort,
[InAttribute] short externalPort
)
void OpenRedirectedPort (
/** @attribute InAttribute() */ int TCP,
/** @attribute InAttribute() */ short internalPort,
/** @attribute InAttribute() */ short externalPort
)
function OpenRedirectedPort (
TCP : int,
internalPort : short,
externalPort : short
)
Parameters
TCP
An integer value that indicates whether or not the port-forwarding rule is for Transmission Control Protocol (TCP) traffic.If the rule is for TCP traffic, the value is 1; if the rule is not for TCP traffic, the value is 0.
- internalPort
A short integer value that specifies the internal port to which you want to route traffic.
- externalPort
A short integer value that specifies the external port from which you want to route traffic.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Home Server
See Also
Reference
IWHSInfo Interface
IWHSInfo Members
Microsoft.HomeServer.SDK.Interop.v1 Namespace