/ Published in: C#
Expand |
Embed | Plain Text
public static int GetAvailablePort() { list.Start(); int port = (list.LocalEndpoint as IPEndPoint).Port; list.Stop(); return port; }
You need to login to post a comment.
jx_boi on 08/30/10
3 people have marked this snippet as a favorite
public static int GetAvailablePort() { list.Start(); int port = (list.LocalEndpoint as IPEndPoint).Port; list.Stop(); return port; }
You need to login to post a comment.