public static void main(String... args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(13800);
        Socket socket = serverSocket.accept();
        InputStream inputStream = socket.getInputStream();
        Scanner scanner = new Scanner(inputStream);
        OutputStream outputStream = socket.getOutputStream();
        PrintWriter printWriter = new PrintWriter(outputStream, true);
        while (scanner.hasNextLine()) {
            String temp = scanner.nextLine();
            System.out.println(temp);
            if (temp.equals("bye")) {
                printWriter.write("byebye !!");
                break;
            }
        }
        printWriter.close();
        scanner.close();
        inputStream.close();
        socket.close();
        serverSocket.close();
    }