title: Read Data from a Java Socket
body: <p>I have a Socket listening on some x port.</p>
  
  <p>I can send the data to the socket from my client app but unable to get any response from the server socket.</p>
  
  <pre><code>  BufferedReader bis = new BufferedReader(new 
    InputStreamReader(clientSocket.getInputStream()));
    String inputLine;
    while ((inputLine = bis.readLine()) != null)
    {
        instr.append(inputLine);    
    }
  </code></pre>
  
  <p>.. This code part reads data from server.</p>
  
  <p>But I cant read anything from server until unless the Socket on the server is closed.
  Server code is not under my control to edit something on it.</p>
  
  <p>How can I overcome this from client code.</p>
  
  <p>Thanks</p>