When I looked at the code I found that I was getting an array of IP addresses, and the code only tried to use the first one. I rewrote the code so if the first one fails then it looks to next, then the next, ect.
The IPv4 vs. IPv6 incompatibility could be the problem, but I know I made it work so its ok for now.
