Archive 17/01/2023.

NAT Punchthrough with kNet

rasteron

Reading knet’s doc here, it mentioned support for NAT punchthrough, so I was wondering how this can be done with udp.

smellymumbler

Anyone found out anything about this?

Enhex

Look into:

In general the best solution is to use UPnP if the router supports it.

smellymumbler

Does kNet support UPnP?

Enhex

No AFAIK. UPnP is high level protocol. IIRC Its NAT traversal feature requires broadcasting HTTP request over UDP.
There are few C libs, but they’re quite low quality IMO.
I considered making a C++ lib for it, though didn’t have a need for it so far.