public static void main(String[] args) {
		try {
			String host;
			int port;
			String name;
			if (args.length == 0) {
				host = "localhost";
				port = 8080;
				Random rnd = new Random();
				name = "Guest_" + rnd.nextInt(100);

			} else {
				host = args[0];
				port = Integer.parseInt(args[1]);
				name = args[2];
			}
			new ChatClient(InetAddress.getByName(host), port, name).start();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}