How To Fetch or check mac address of a company.

Posted by Neer under Others on 3/6/2012 | Points: 10 | Views : 952 | Status : [Member] | Replies : 1
hi,
i have to fetch a mac address and check it for login that is allowed for office only.

-Neer


Responses

Posted by: Manohpr on: 3/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Friend,

Try this code. You can get the System MAC address. I give the code in C#.net.

foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())

{
if (nic.OperationalStatus == OperationalStatus.Up)
{
_macAddress += nic.GetPhysicalAddress().ToString();
break;
}
}


Neer, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response