Click or drag to resize

NetUPnPForwardPort Method

Add a forwarding rule to the router using UPnP

Namespace:  Internal.Lidgren.Network
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public bool ForwardPort(
	int externalPort,
	string description,
	int internalPort = 0
)

Parameters

externalPort
Type: SystemInt32
The external, WAN facing, port
description
Type: SystemString
A description for the port forwarding rule
internalPort (Optional)
Type: SystemInt32
The port on the client machine to send traffic to

Return Value

Type: Boolean
See Also