Ensure that the ports are integers