code was forcing use of ipv4