more robust network address pick on osx, fixed client setup port check (thx egradman)