Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to get Mac Address of Client System in asp.net
sumesh np
May 13 2016 9:34 AM
230
Reply
Hello,
How to get Max Address of a client system in asp.net?
public string MacAddress()
{
NetworkInterface[] nif = NetworkInterface.GetAllNetworkInterfaces();
String MACAddress = string.Empty;
foreach (NetworkInterface adapter in nif)
{
if (MACAddress == String.Empty)
{
IPInterfaceProperties ipproperties = adapter.GetIPProperties();
MACAddress = adapter.GetPhysicalAddress().ToString();
}
}
return MACAddress;
}
When i try this code, it returns same Mac Address in different system in one network.
Please help...
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Autosuggestion in bootstrap
insert data into sql server using javascript