public synchronized boolean connect(InetAddress ipadr) {
        ishost = false;
        try {
            clientSocket = new Socket(ipadr, port);
            isClient = true;
        } catch (IOException ex) {
            System.out.println(ex.getMessage());
            return false;
        }
        System.out.println("verbunden mit: "+clientSocket.getInetAddress());
        playing = true;
        return true;
    }