ipv4 return loopaddress if it encounters ipv6