- fix proto and port selection - related to commit #9620
  Reported by Ovidiu Sas