Since you are typically only interested in "the hosts macaddress" (although there is no such thing as a host can have multiple network interfaces each having an individual mac address), this call will give you exactly that.Ī Node.JS script can discover the MAC address of the current machine by examining the link-local IPv6 address. On node ≥ 0.11 you are not required to use the asynchronous version: var addr = require('node-macaddress').one() In this article, I will take you through different ways to List/Get/Display/Find MAC Address in Linux. ![]() ![]() ![]() On NodeJS ≥ 0.11 the mac address for each network interface is in the output of os.networkInterfaces(), e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |