Made listening port random to try and resolve the intermittent socket test errors