Check port number in range.