public void open() {
        try {
            writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
            reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            writer2 = new BufferedWriter(new OutputStreamWriter(socket2.getOutputStream()));
            reader2 = new BufferedReader(new InputStreamReader(socket2.getInputStream()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }