如何使用Mac地址获取位置? [英] How Do I Get Location Using Mac Address?

查看:147
本文介绍了如何使用Mac地址获取位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void Button1_Click(object sender, EventArgs e)
   {
       NetworkInterface[] nic = NetworkInterface.GetAllNetworkInterfaces();
int j=0;
       PhysicalAddress add = nic[j].GetPhysicalAddress();
           Label1.Text = add.ToString();
           
       }





i通过以上代码得到mac地址...但是使用mac地址我想找location。



i get mac address through the above code...but using mac address i want to find location.

推荐答案

请阅读评论的评论。



这是一个想法:根据IP地址(C#)轻松跟踪地理位置 [ ^ ]
Please, read comment to the question.

Here is an idea: Easy to Track the Geographical Location Based on IP Address (C#)[^]


这篇关于如何使用Mac地址获取位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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