Updated to support addresses specified in IPv4 style (in which case only IPv4 is used)