Switch to using bind() to just find free ports to use while testing.