Fixes random port testing problem

Fixes random port testing problem (#685).
We do not support IPv6. That is a 2016 project...