On 4/10/12 8:29 PM, Joe Ferner wrote:
Does node have anyway to get the MAC address of the client connecting
to a server? I saw an arp plugin (http://search.npmjs.org/#/arp) which
would work but it requires shelling out to read the arp table which I
would prefer not to do.

you can have a look at sigar (http://www.adaltas.com/projects/node-sigar/)

here's an example from the tests:

    it 'should list arp', ->
        arpList = s.arpList()
        # console.log 'arpList', arpList
        for arp in arpList
            Object.keys(arp).should.eql [
                'ifname', 'type',
                'hwaddr', 'address',
                'flags'
            ]

d.

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to