Auto-configuration: set port only when not default