Click here to Skip to main content
15,895,808 members
Articles / Programming Languages / C# 4.0

Find the Mac id Of client Machine

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
1 May 2012CPOL 0  
using System.Net.NetworkInformationprivate void Form15_Load(object sender, EventArgs e) { NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces(); label1.Text = nics[0].GetPhysicalAddress().ToString(); }

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
13 Mar 2012El_Codero
Hi,easy to achieve with WMI. Try this:private string GetMac(){ string Mac = string.Empty; ManagementClass MC = new ManagementClass("Win32_NetworkAdapter"); ManagementObjectCollection MOCol = MC.GetInstances(); foreach (ManagementObject MO in MOCol) if (MO...
Please Sign up or sign in to vote.
13 Mar 2012siri2012 2 alternatives  
How to find the MAC Id of Client Machine

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions