用C#获得远程主机的MAC地址的方法初探  

A Way to Obtain the Remote Host Computer's MAC Address with C#

在线阅读下载全文

作  者:董忠[1] 尤良方[1] 

机构地区:[1]天水师范学院数理与信息科学学院,甘肃天水741001

出  处:《天水师范学院学报》2004年第2期38-39,48,共3页Journal of Tianshui Normal University

摘  要:在学校校园网的安全管理中,常常需要获得每台上网计算机的和网卡IPMAC地址的对照表。通过在C#中调用Windows的API函数inet-addr和SendARP,向远程主机发送ARP数据包,最后从返回的数据包中获得远程主机MAC地址及IP地址的对照表。这种方法解决了c#中获得远程计算机网卡MAC地址的问题。In the safety management of computer's internet, It is quite often needed to obtain IP and MAC addresses of every on_line computer. This paper examplifies a way to obtain the remote host computer's MAC address in C#, which employs the windows actions of inet_addr and send ARP to send ARP database package to the remote host computer, and hindly obtains the remote host computer's IP and MAC addresses from the database package returned.

关 键 词:校园网 C#语言 远程主机 MAC地址 Windows API函数 程序设计 

分 类 号:TP393.18[自动化与计算机技术—计算机应用技术] TP311.1[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象