I need MAC Address of current system using Angular
I tried this
run this command : npm install --save getmac
then in component file code is
getMACAddress() {
require('getmac').getMac(function (err, macAddress) {
if (err) throw err
console.log(macAddress)
alert(macAddress);
})
}
Is there any other way to fetch the MAC Address using Angular, TypeScript, JavaScript?


Manoj BhoirRank #599 · 4K reputationPosted May 26, 2019, 11:06 PM EDT
Sivakumar KonetiRank #1,556 · 1K reputationPosted May 26, 2019, 8:12 PM EDT
Yogendra SahuRank #2,639 · 529 reputationPosted May 26, 2019, 10:54 PM EDT
I gone through this links but I think it is not for what I am asking
How I get MAC Address of a system using Angular 4
Yogendra SahuRank #2,639 · 529 reputationPosted May 27, 2019, 12:03 AM EDT