checking whether localhost works for ipv6 as well