title: ServerSocket accept() method
body: <p>Who knows how the port is chosen when I'm using accept method of ServerSocket class? Is it possible to define a range for the ports the method can choose from? Can I 'take' ports one by one just in order? </p>
  
  <pre><code>ServerSocket sSocket = new ServerSocket(5050);
  Socket socket = sSocket.accept();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/WfeDq.png" alt="From the book"></p>