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 MaruthiPosted Jul 21, 2014, 3:37 PM
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();
}