Get client MAC address from express request object
<p>I'm trying to grab the MAC address from the incoming request object. My application runs behind nginx proxy so for getting IP address i use the below syntax and it works fine.</p>

<pre><code>var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
</code></pre>

<p>Similarly is there a way to get the MAC address of the request that's been made. Came across this package <a href="https://www.npmjs.com/package/getmac" rel="nofollow">https://www.npmjs.com/package/getmac</a> and i'm not sure if that would help. Fundamentally i need to grab the MAC and IP address of every incoming request.</p>