Allow to set port 0, this means randomize.