c#获取本地IP和MAC地址
摘要:
查找了几个方法,经过调试修改,下面这个方法能很好的获取到本地的IP和MAC地址。可以用于这方面的功能实现。主要是要添加System.Management的引用。using System;using System.Management;using System.Net; public class Program { static void Main(string[] args) { try { string ip = ""; string mac = ""; ... 阅读全文
posted @ 2011-09-23 14:18 c语言源码 阅读(265) 评论(0) 推荐(0) 编辑