filter out localhost and ipv6 special address