get an random free tcp port and pass to the callback