How do I ensure that a particular port on my computer is not being used for any other purpose other than the service I need in C#??
In my program for a simulation of a lan-messenger, I am getting a connection refused error when trying to connect to a remote host.Hence I need to somehow ensure that the port isn't being used for any other purpose.