Ensure that input number is within range of MIN_PORT and MAX_PORT. If more than MAX_PORT, wrap around, if less than MIN_PORT use MIN_PORT.
The Number to check
A Valid number in port range
Ensure that input number is within range of MIN_PORT and MAX_PORT. If more than MAX_PORT, wrap around, if less than MIN_PORT use MIN_PORT.