Click or drag to resize

CrestronEthernetHelperAddPortForwarding(UInt16, UInt16, String, String) Method

Add port forwarding

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static CrestronEthernetHelperPortForwardingUserPatRetCodes AddPortForwarding(
	ushort ExternalPort,
	ushort InternalPort,
	string IPAddress,
	string IPProtocol
)

Parameters

ExternalPort  UInt16
Port number on the LAN side
InternalPort  UInt16
Port number on the control sub-net side
IPAddress  String
IP address (in dot decimal notation) of the device on the LAN side of Router
IPProtocol  String
IP protocol for the portmap service (TCP | UDP)

Return Value

CrestronEthernetHelperPortForwardingUserPatRetCodes
Returns PortForwardingUserPatRetCodes.NoErr if successful

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also