Allocating local vs remote ports, to ensure unprefixed env keys are available in scope