How to programmatically find the geographical location of an incoming HTTP request?

I know that there are many online tools available, but I want to write in a home tool, links, or how to do this? Or can this even be done, or is it a gigantic task?

+3
source share
2 answers

You need a database of locations for all IP addresses. Thus, you create the database yourself (truly a mammouth job) or use an external service.

Some IP location services have an API, so you can call them from within your code.

+1
source

This is pretty easy to do.

check this resource

http://www.ip2location.com/html5geolocationapi.aspx

+1
source

All Articles