title: Is the port used by a TCP client to connect to a server unavailable for other TCP Servers
body: <p>When creating a TCP client using the socket API, a port is used on the localhost for connecting to the TCP server.</p>
  
  <p>The port that is used seems to be unavailable for another application which is a TCP server to bind to and act as a server.</p>
  
  <p>Because the port used for the client is dynamically determined it may be a port that my application wants to use as a server.</p>
  
  <p>Is it true that the TCP client will dynamically pick a port to use and prevent other programs from being a server on that port?</p>
  
  <p>Can a client control what port it uses to make sure it does not occupy a port required by another program? </p>