title: Setting source port on a Java Socket?
body: <p>I'm very new to socket programming:</p>
  
  <p>Is it possible to explicitly set the the source port on a Java Socket? </p>
  
  <p>I am working on a client/server application in which clients could potentially be listening for replies from the server on several ports. It would be nice if I could set this reply port on the client side when initializing the Socket, so that the server would be able to determine which port to reply to on the other side.</p>