private static int[] portRangeToArray(int portMin, int portMax) {
		if (portMin > portMax) {
			int tmp = portMin;
			portMin = portMax;
			portMax = tmp;
		}
		int[] ports = new int[portMax - portMin + 1];
		for (int i = 0; i < ports.length; i++)
			ports[i] = portMin + i;
		return ports;
	}