How do I find the geographical location from ip address

Generally it is imposible to find location from ip address. There is no connection between IP address and the location of some host. Here are following tricks to guess the IP address of a host. Some companies maintain database using these tricks.

  1. Using reverse DNS find out hosts name and hosts name can provide some information about country. Like take a examle of IP address 125.22.0.188 and do a nslookup on that “nslookup 125.22.0.188″ it give something like broadband.airtel.co.in so from the last .in we can figure out that this ip address belongs to INDIA. But reverse DNS does not works all the times it depends upon servers configuration. I domain can be hosted in another country even when it have name have .in in domain name.
  2. Visit the hosts web site like www.geo-location.com and find out the location. Some sites mention their location on the web pages.
  3. More to be added

Leave a Reply