public ChatClient(String s) throws RemoteException{
		super();
		userName = s;
		int count = 1;
		boolean set = false;
		while(!set){
			try {
				Naming.lookup(userName);
				userName = s + count;
				count ++;
			} catch (MalformedURLException e2) {
				e2.printStackTrace();
			} catch (NotBoundException e2) {
				try {
					Naming.rebind(userName,this);
					set = true;
				} catch (MalformedURLException e1) {
					e1.printStackTrace();
				}
			}
		}
		try {
			server = (ChatService) Naming.lookup("ChatServer");
			server.login(getName());
			for(String u : server.getUserList()){
				if(!u.equals(userName)){
					send(u + " ist im Chat angemeldet!");
				}
			}
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			System.out.println("Verbindung zum ChatServer nicht möglich! Ist der ChatServer registriert?");
			e.printStackTrace();
		}
	}