title: What is socket bind and how to bind an address?
body: <p>In Java, I need to know what is the bind operation:</p>
  
  <pre><code>ServerSocket.bind()
  </code></pre>
  
  <p>From Javadoc:</p>
  
  <blockquote>
    <p>Binds the ServerSocket to a specific address (IP address and port
    number).</p>
  </blockquote>
  
  <p>I know what is bind and EJB (from example) to a name. Is this similar?</p>
  
  <p>How to bind a local address to a server socket?</p>
  
  <p>I am using:</p>
  
  <pre><code>providerSocket.bind(new InetSocketAddress("192.168.0.1", 0));
  </code></pre>
  
  <p>And I got <code>Already Bound</code> error!</p>