public static int checkPortAvailability(InetAddress inetAddress, int scanStartPort, int limit) {
		while (true) {
			if (checkExactPortAvailability(inetAddress, scanStartPort)) {
				return scanStartPort;
			}
			if (scanStartPort++ > limit) {
				throw processException("no port is available");
			}
		}
	}
Get a available port greater than the given port.

@param scanStartPort port scan from
@return min port available from scanStartPort
ngrinder-core/src/main/java/net/grinder/util/NetworkUtils.java