Hi,
I just copied my whole “Stun Client Stuff” here: Unreal Sockets - Pastebin.com
I get the port in line 40, but first you need the socket, 32, but for that you need the ipnetdriver (20) and for that you need the netdriver (16) and for that you need the onlinesubsystem (5).
Also I tried to get the port in 14 “getportfromnetdriver” but if I remember correctly that’s just the preferred port for that netdriver and that instancename, so it’s not guaranteed to be that port (but maybe it was, I can’t remember).
Depending on what you what there is also
Session->SessionInfo->HostAddr->GetIP/GetPort
to get the port of an already active session.