APF-1454: Changed Cargo ports so they're set dynamically based on open ports.