Originally Posted By: JuanAm

Your code works perfectly to 99 %.
With ips of my country, gives incomplete information, does not show the city.
Maybe that happens with the local IPs (the country of who executes this script).
Try you with your own IP and say me.