MAC Address/Physical Address?

Discussion in 'ASP .Net' started by SJ, Jan 7, 2006.

  1. SJ

    SJ Guest

    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();

    }
    SJ, Jan 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Verde

    Physical Location of IP Address

    Verde, Apr 10, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,297
    Steven Berkovitz
    Apr 10, 2005
  2. Krishna Sagiraju

    convert virtual address to physical address

    Krishna Sagiraju, Jul 10, 2004, in forum: C Programming
    Replies:
    3
    Views:
    1,196
    Malcolm
    Jul 10, 2004
  3. sushant

    virtual address or physical address?

    sushant, Feb 18, 2005, in forum: C Programming
    Replies:
    9
    Views:
    995
    CBFalconer
    Feb 18, 2005
  4. henry
    Replies:
    10
    Views:
    1,079
    Ben Bacarisse
    Feb 28, 2009
  5. SJ

    MAC/physical address?

    SJ, Jan 7, 2006, in forum: ASP .Net Security
    Replies:
    1
    Views:
    109
    Dominick Baier [DevelopMentor]
    Jan 7, 2006
Loading...

Share This Page