public static ServerSocket ramdomAvailableSocket() {
		Random ran = new Random();
		boolean accept = false;
		ServerSocket socket = null;
		while (!accept) {
			int x = ran.nextInt(9999);

			try {
				socket = new ServerSocket(x);
				accept = true;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				accept = false;
			}
		}

		return socket;
	}