title: How do I specify a valid port when testing a client and server socket application?
body: <p>I'm trying to connect a client to a server test program in C# using Sockets on my local machine.  However, I get the "server actively refused the connection" error for every port number I try.</p>
  
  <p>How do I pick a valid port number to be able to just test out sockets between a sample client and server? Is there a valid port no. I can use for this scenario?</p>