title: ServerSocket in Java programming
body: <p>I am creating a client-server program in java using Socket and ServerSocket. My question is that can ServerSocket accept more than one request from different client with different port.</p>
  
  <p>For Example</p>
  
  <pre><code>     ServerSocket soc1 = new ServerSocket(8001);
       ServerSocket soc1 = new ServerSocket(8002);
  </code></pre>
  
  <p>I want to use soc1 for both the port.</p>
  
  <p>Thanks</p>