Click here to Skip to main content
12,512,515 members (74,177 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

0 views
Posted

Find the Mac id Of client Machine

, 1 May 2012 CPOL
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.

13 Mar 2012
Björn Ranft
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...
13 Mar 2012
siri2012
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)

Share

About the Author

siri2012
United States United States
No Biography provided

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 1 May 2012
Article Copyright 2012 by siri2012
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid