How to determine location based on IP

Kannan Nadar
Tera Guru

Hi Team,

I would like to determine a user's location based on IP Address without using any third party tool or API.

Please let me know if there is a way.

Thanks,

Kannan

11 REPLIES 11

Hello Adil,



Thank you for your reply.



But for this method we would need to use Google Maps API. I am trying to find a solution without any external API's.



Thanks,


Kannan


Does your internal AD team put the machines in ActiveDirectory OUs named as per Country > City. If that is possible then you need to query the AD for LDAP path of the machine.


Yes, we do have information about that, but what if the user is travelling with his laptop?


If it is a permanent relocation then I believe his machine would be migrated to a different OU as there would be site specific group policies that the machine needs to adhere to...


Why don't you prepopulate it as best you can, and then provide a way for the user to change it if they need to? Why don't you want to use an external service?