String line=null; FromServer=new String(); while((line = inFromServer.readLine())!=null){ FromServer+=intr; intr=new String(""); }
May be the inFromServer.readLine() is waiting for response from the server to the socket.
The readLine method waits until the server echoes the information back to EchoClient