Click here to Skip to main content
15,888,100 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am fresher, I don't no how to getting the latitude and longitude from both the mac and ip address please help me . Thanks in advance
Posted
Comments
Richard MacCutchan 15-Feb-15 12:08pm    
You cannot get latitude and longitude from that information.

1 solution

You can't. Well, not with any accuracy anyway.

The MAC address mean nothing at all outside of the network that it's connected to so don't even bother with it.

The IP address, IF AND ONLY IF it is routable on the Internet!, can be looked up in some Geo-IP databases, but don't expect them to be able to lookup all IP's and don't expect the location to be accurate within 50 miles.

For example, this tool[^] says my IP address is about 23 miles from where my machine actually is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900