title: Can two different UDP socket in a system bind same port?
body: <p>I have an application which uses UDP connection, now when i try to run the app more than once its throwing me an exception</p>
  
  <pre><code>java.net.BindException: Address already in use: Cannot bind
  </code></pre>
  
  <p>but in my another app, which uses tcp connection, i can open two instance of the same app and its working fine. why this error only with UDP connection?</p>
  
  <p>Edit:</p>
  
  <pre><code>TCP socket:
  
  Socket clientSocket= new Socket(ipAddress, 8000);
  Socket clientSocket1= new Socket(ipAddress, 8000);
  </code></pre>
  
  <p>If i create TCP socket like above,with same port, it is not throwing any error. but if i do this with UDP Socket it throwing me an exception, why?</p>