initialise port to 0, wildcard address test fails on OSX