0

hi evey one,
i want mac address in windows 7
code i written to getmac address:

String NicCardAddress = null;
                    foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
                    {
                        if (nic.OperationalStatus == OperationalStatus.Up)
                        {
                            NicCardAddress = nic.GetPhysicalAddress().ToString();
                            break;
                        }
                    }

i am getting two addrress one for lan and another for wirless network,how i acn get only lan physical address

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by slider212
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.