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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.