Dont allow 0 as port number and set hostname lookup for IPv4 only