phpipip-geolocation

get region/city from ip


how can I retrieve the region and the city from an ip? I have found this service: http://api.hostip.info/?ip=xyz.qwe.rty

But It doesn't give me accurate info like this: http://www.ipaddresslocation.org/

Do you know some free service? I need to retrieve this info with a php script, but I wouldn't install external library.

Thank you so much


Solution

  • This is my favourite:

    ipinfodb