public static void main(String[] args) {
        try {
            int port = Integer.parseInt(args[0]);
            new ChatServer(port);
        } catch (Exception e) {
            System.out.println("Enter a valid port.");
            System.exit(0);
        }
    }