bind to random port by default when not root under unix
return not regular file on block specal files and such