Checking min/max for port no.