如何从mac和ip地址获取经纬度
问题描述:
我比较新鲜,我不知道如何从mac和ip地址获得经纬度请帮助我。在此先感谢
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
答
你不能。好吧,无论如何都没有任何准确性。
MAC地址在它连接的网络之外根本没有任何意义,所以甚至不用担心它。 />
只有在互联网上可路由的IP地址,如果它是唯一的!可以在一些地理IP数据库中查找,但不要指望它们能够查找所有IP并且不要指望该位置在50英里内准确。
例如,此工具 [ ^ ]说我的IP地址是距离我的机器实际位置大约23英里。
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.