Spit random port to file for test