title: Java Socket only works on "localhost" but not in private network
body: <p>I'm having trouble with my java socket programm.
  I am opening a ServerSocket on host A. 
  On host B, which is in the same private network, I 
  try to bind to the server, but I always get a timeout.</p>
  
  <p>Host A | Server | IP: 192.168.56.1<br>
  Host B | Client | IP: 192.168.47.1</p>
  
  <p>On the server host A::</p>
  
  <pre><code>welcomeSocket = new ServerSocket(2323);
  socket = welcomeSocket.accept();
  </code></pre>
  
  <p>After opening that serverSocket; on host B:</p>
  
  <pre><code>socket = new Socket("192.168.56.1", 2323);
  </code></pre>
  
  <p>Then after a few seconds, there is the Exception:</p>
  
  <pre><code>java.net.ConnectException: Connection timed out: connect
  </code></pre>
  
  <p>The socket does work well when I start the server on either host A or B 
  and enter "localhost". <br>
  What's wrong here? Thanks for your help.</p>