public void run() {
        System.out.println("Welcome to Server side");


        ServerSocket servers = null;
        Socket fromclient = null;

        // create server socket
        try {
            servers = new ServerSocket(4444);
        } catch (IOException e) {
            System.out.println("Couldn't listen to port 4444");
            System.exit(-1);
        }

        try {

            while (true) {


                fromclient = servers.accept();
                Client clientThread = new Client(fromclient);
                Thread t = new Thread(clientThread);
                t.start();
                System.out.println("Client connected");
            }
        } catch (IOException e) {
            System.out.println("Can't accept");
            System.exit(-1);
        }


        try {
            servers.close();
        }
         catch (IOException ex) {
            System.out.println("Can't close socket");
            System.exit(-1);
        }


        // Тут мы обслуживаем клиента
    }