-4

I want the smallest possible code for this question. I never want to follow other questions as they never helped me and given me back to back errors

halfer
  • 19,824
  • 17
  • 99
  • 186
  • the question had been asked before , for reference see this http://stackoverflow.com/questions/409999/getting-the-location-from-an-ip-address – Maaz Rehman Mar 15 '15 at 07:33
  • Googling this would have led you to questions here where this has already been answered as well as links to the software you can use and tutorials on how to do it. – David Soussan Mar 15 '15 at 07:37

1 Answers1

1

you are getting inappropriate results because maybe you are using a localhost server, try a hosting server , i got the same problem 3 months ago it worked fine when i tested on a hosting server.

Maaz Rehman
  • 674
  • 1
  • 7
  • 20