PCClient :
public class PCServer { /** * @param args */ static Socket socket = null; private static String ip = \"192.168.42.129\"; private s
Closing any stream obtained using getOutputStream() or getInputStream() closes the socket.
getOutputStream()
getInputStream()
Do you receive something before 'BZT' ? If so, the socket will be closed after you sent the empty answer.
You should use only one output stream, and flush() each message without closing.
flush()