Allow port to be set to 0 (system-assigned).