NatPunchModuleNatIntroduce Method |
Sends NAT introduction packets to both the host and the client to facilitate punchthrough.
Namespace: LiteNetLibAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic void NatIntroduce(
IPEndPoint hostInternal,
IPEndPoint hostExternal,
IPEndPoint clientInternal,
IPEndPoint clientExternal,
string additionalInfo
)
Parameters
- hostInternal IPEndPoint
- Internal (LAN) endpoint of the host.
- hostExternal IPEndPoint
- External (WAN) endpoint of the host.
- clientInternal IPEndPoint
- Internal (LAN) endpoint of the client.
- clientExternal IPEndPoint
- External (WAN) endpoint of the client.
- additionalInfo String
- Custom token or data to include in the introduction.
Remarks
This is typically called by a mediator (e.g. a master server).
See Also