如何从IP和IP获得纬度和经度Windows应用程序中的MAC地址 [英] How to get Latitude and Longitude form IP & MAC Address in Windows Application

查看:105
本文介绍了如何从IP和IP获得纬度和经度Windows应用程序中的MAC地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我使用C sharp编码在Windows应用程序中创建了一个项目,因为我必须从IP地址获取纬度和经度MAC地址,任何人都可以建议我使用Windows应用程序中的C sharp编码获取给定IP地址和MAC地址的纬度和经度。提前致谢 。 :)

Hi Friends,

I have created a project in Windows Application using C sharp codings , in that i have to get the Latitude and Longitude from the IP Address and MAC Address , so can any one suggest me to get the Latitude and Longitude for the given IP Address & MAC Address using C sharp codings in Windows application. Thanks in Advance . :)

推荐答案

第一件事是:MAC地址不能帮助你 - 它没有地理位置,它通常不会传播到互联网之外连接路由器所以它不太可能获得一个。



要做这样的事情,你需要获得外部IP地址(这不是你的PC IP - 那个再次没有离开本地网络)这意味着与外部网站交谈会将其反弹给您。然后,您可以使用地理定位服务查找纬度和经度。



Google可以帮助您完成这两项任务。
The first thing is: the MAC address won''t help you - it has no geographic location and it isn''t normally propagated beyond the internet connection router so it is very unlikely to acquire one.

To do anything like this, you need to get the external IP address (which is not your PC IP - that again doesn''t leave the local network) which means talking to an external site which will bounce it back to you. You can then use a geolocation service to find the latitude and longitude.

Google can help you with both of these tasks.


这篇关于如何从IP和IP获得纬度和经度Windows应用程序中的MAC地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆