public void run(){
        // Open a server socket because the client should act
        // like a server, too
        try {
          serverSocket = new ServerSocket(port);
        } catch (IOException e) {
          System.out.println(e);
        }
       
         
        /*
         * Create a client socket for each connection and pass it to a new client
         * thread.
         */
        while (true) {
          try {
            clientSocket = serverSocket.accept();
            
            (new ClientThread(clientSocket)).start();
                        
          } catch (IOException e) {
            System.out.println(e);
          }
        }

    }