More resilient tests (randomized ports)
Nicer exception when connection fails