ForwardPort Method

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
Add a forwarding rule to the router using UPnP

Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)

Syntax

C#
public bool ForwardPort(
	int port,
	string description
)
Visual Basic
Public Function ForwardPort ( _
	port As Integer, _
	description As String _
) As Boolean
Visual C++
public:
bool ForwardPort(
	int port, 
	String^ description
)

Parameters

port
Type: System..::..Int32

[Missing <param name="port"/> documentation for "M:Lidgren.Network.NetUPnP.ForwardPort(System.Int32,System.String)"]

description
Type: System..::..String

[Missing <param name="description"/> documentation for "M:Lidgren.Network.NetUPnP.ForwardPort(System.Int32,System.String)"]

Return Value

[Missing <returns> documentation for "M:Lidgren.Network.NetUPnP.ForwardPort(System.Int32,System.String)"]

See Also