Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > MAC Address/Physical Address?

Reply
Thread Tools

MAC Address/Physical Address?

 
 
SJ
Guest
Posts: n/a
 
      01-07-2006
I know I can use System.Management library, but it returns like 6 different
values all
of which look like MAC addresses. Which one do I pick and how do I identify
it?
ManagementClass oMClass = new ManagementClass
("Win32_NetworkAdapterConfiguration");

ManagementObjectCollection colMObj = oMClass.GetInstances();

foreach(ManagementObject objMO in colMObj)

{

if(objMO["MacAddress"] != null)

MACAddress += objMO["MacAddress"].ToString();

}


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2811 snmp for what mac's are on which port ( simliar to thesh mac-add ) ab Cisco 0 02-12-2007 08:26 PM
Image quality on .mac (dot mac) eyalnevo@gmail.com Digital Photography 4 05-16-2006 03:07 PM
Vertical Gap between DIVs in Opera 8.5 Mac + IE 5.2 Mac mangm HTML 2 12-01-2005 12:48 PM
mac!! mac!!! * * * Y o u r . S h e p h e r d . A q u i l a . D e u s . ( d 2 0 0 5 x x , d 2 0 0 4 x x , d 2 0 0 Computer Support 7 06-03-2005 12:48 AM
Senseless rendering: Mac.Mozilla != Mac.Netscape6.01 ?!?! Roman =?ISO-8859-15?Q?Bl=F6th?= HTML 1 07-02-2003 10:23 AM



Advertisments