Try up to 20 random ports if necessary
Merge pull request #252 from jcheng5/random-ports2

Try up to 20 random ports if necessary