public void run() {
        if (client_socket != null && os != null && is != null) {
            try {
                String responseLine;

                while ((responseLine = is.readLine()) != null) {
                    System.out.println(responseLine);
                    if (client_socket.isClosed())
                        break;
                    os.println(inputLine.readLine());
                }
                os.close();
                is.close();
                client_socket.close();
            } catch (IOException e) {
                JOptionPane.showMessageDialog(null, "Connection lost...",
                        "ERROR", JOptionPane.ERROR_MESSAGE);
                System.out.println("Connection lost...");
            }
        }
    }