ASP.NET: How to get MAC Address of Adapter
Posted by: Peter Brombergs UnBlog,
on 13 Jun 2007 |
View original | Bookmarked: 0 time(s)
using System;using System.Net.NetworkInformation;using System.Web;namespace MACAddress{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties(); NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces(); Response.Write("Interface information for "+ computerProperties.HostName + ": "+ computerProperties.DomainName...