How to get MAC address from nodejs

0

I need to know if it is possible to obtain the MAC address of a client in NodeJS.

    
asked by Isaac Vega 17.10.2016 в 07:11
source

2 answers

2

There are several solutions one of them could be this:

var addr = require('node-macaddress').one();

or installing the module getMac

npm install getmac
    
answered by 17.10.2016 / 10:49
source
1

As they say in this response , unless the client be in the same LAN network segment, you will not get the client's address, but surely the client's router.

Apparently, there are some applications that installed in node will give you information about the MACs of the clients (even if it is from the router) - > link

I hope you're worth it.

    
answered by 17.10.2016 в 10:47