Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How can i get the Port after called Method "NetworkTransport.AddHost"

$
0
0
I want the socket port chosen by OS, not by my define.

My code:
socketId = NetworkTransport.AddHost (ht);

How can i get the Port chosen by OS? THX

Ref:
Parameters
port - Bind to specific port, if 0 is selected the port will chosen by OS.

Viewing all articles
Browse latest Browse all 16796

Trending Articles