Hii guys and gals
I want to know that How to get Router MAC address in asp.net( C#). because i'm developing a attendance software of an orgnization and orgnization requirement is that attendance is submitted only in orgnization network. so help me............if any other suggestion related to this software then tell me.

Ramesh MaruthiRank #937 · 2.2K reputationPosted Jul 21, 2014, 11:37 AM EDT
using System.Net;
Private string GetIP()
{
string strHostName = "";
strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
return addr[addr.Length-1].ToString();
}