Minor fix for randomized ports for connecting.