kcp2k icon indicating copy to clipboard operation
kcp2k copied to clipboard

Feature request: Add access to client udp port (UDP hole punching)

Open motmot80 opened this issue 1 year ago • 3 comments

Description

I need to know the client udp port which is randomly assigned to the socket, so I can use it to punch a UDP hole from the server to the client (f.e. Full-cone NAT).

SERVER:7777 =UDP-PUNCH=> CLIENT:<RANDOM>

Without access to the udp client port (socket port) I cannot punch these holes during the connection phase.

Feature request

Public method to access the assigned client udp port.

You did great work!

Thanks in advance and best regards, Thomas

motmot80 avatar Oct 03 '23 16:10 motmot80