Ah, I see what you mean. We could include the port numbers in the preference files, and that would require a preference file for each environment.
Fortunately, we only have three environments, so our current approach is reasonable. If we had dozens of environments like you do, then it wouldn't...