Geo-ip location services are not reliable.
My IP routinely shows me as being located 200 or more miles from my actual location.
At best you can locate a person in a country (in most cases) but remember that IP blocks are allocated non sequentially and this is in the name of security to stop a blanket block of a country or to facilitate a hack.
When I was a BT Internet customer, my IP address would show up as being american despite being located in the UK.
Please remember to wrap any code you have in forum tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape...