public static void main(String[] args) {
        int port;
        if (args.length < 1) {
            port = 6727;
        } else {
            port = Integer.parseInt(args[0]);
        }

        try {
            serverSocket = new ServerSocket(port);
        } catch (IOException ex) {
            Logger.getLogger(ClipboardShare_Server.class.getName()).log(Level.SEVERE, null, ex);
        }
        System.out.println("Waiting for client on port " + serverSocket.getLocalPort() + "...");
        while (true) {
            try {
                Socket currentConnection = serverSocket.accept();
                new WelcomeThread(currentConnection).start();
            } catch (IOException e) {
                System.err.println(e.getMessage());
                break;
            }
        }
    }