top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to find the location from a given IP-Address?

+2 votes
138 views
How to find the location from a given IP-Address?
posted Jan 28, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Use the following code

$tags = get_meta_tags('http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress=103.6.158.109');
print $tags['city']; // city name

What else u can print
Country Code
Country
Region Code
Region
City Code
City
CityId
Latitude
Longitude

answer Jan 28, 2014 by Salil Agrawal
Similar Questions
0 votes

Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip address?

+3 votes

Any opensource code would be a great help :)

+1 vote

I want a JAVA program. That gets the website name from the user and prints the IP Address of that website.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...