advance thanks those who gives me the great tips about how to find Physical address by using javascript.
Asked
Active
Viewed 8.5k times
-2
-
It isn't possible, usually. (I suppose an ActiveX control could at a stretch.) Also, you probably shouldn't care. – Ry- May 15 '13 at 04:11
-
Have a look here http://stackoverflow.com/a/10747/1846192. – Mathijs Flietstra May 15 '13 at 04:12
1 Answers
3
Hope this helps!
function networkInfo(){
var wmi = new ActiveXObject ("WbemScripting.SWbemLocator");
var service = wmi.ConnectServer(".");
e = new Enumerator(service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True"));
for(; !e.atEnd(); e.moveNext()) {
var s = e.item();
var macAddress = unescape(s.MACAddress);
}
return macAddress;
}

SC00PB
- 113
- 4
-
7That will only work in Internet Explorer, and only if the user decides to give your plugin permission. – Robert Harvey May 15 '13 at 04:30
-
1thanks your support but i already try your code this code is only execute in IE8 but i need to compatible to all browser when client access my web application. – Balram Khadka May 16 '13 at 03:46