JBTM-1565 - Use a random port for socketserver when port 0 is given in config