Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / C# 3.5

Find an open port on a machine using C#

Rate me:
Please Sign up or sign in to vote.
4.00/5 (5 votes)
15 Oct 2011CPOL 11K   1  
The tcpEndPoints array has duplicates and members outside the required range. It may be better to restrict the array members to the required range, sort them, and remove the duplicates. The first free port can then be found by finding the first non-sequential value.using...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Wales Wales
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions