How to get client MAC address by using javascript? -
this question has answer here:
- mac addresses in javascript 6 answers
advance gives me great tips how find physical address using javascript.
hope helps!
function networkinfo(){ var wmi = new activexobject ("wbemscripting.swbemlocator"); var service = wmi.connectserver("."); e = new enumerator(service.execquery("select * win32_networkadapterconfiguration ipenabled = true")); for(; !e.atend(); e.movenext()) { var s = e.item(); var macaddress = unescape(s.macaddress); } return macaddress; }
Comments
Post a Comment