TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jitendra rawat
NA
15
3.8k
how to get client side mac ID.
Apr 22 2016 4:06 AM
below is the code which i am using to get mac address, but when i publish this on server its taking the mac id of server. but what i want is to get mac id of client machine in which i am working.
Thanx in advance
public string GetMac()
{
string Mac = string.Empty;
ManagementClass MC = new ManagementClass("Win32_NetworkAdapter");
ManagementObjectCollection M0col = MC.GetInstances();
foreach (ManagementObject M0 in M0col)
if (M0 != null)
{
if (M0["MacAddress"] != null)
{
Mac = M0["MACAddress"].ToString();
if (Mac != string.Empty)
break;
}
}
return Mac;
}
}
}
Reply
Answers (
1
)
My Dropdownlist always take the 1st value of database
how to send notification one user to another user