Reputation:
I was wondering if there is a way to use PHP or JavaScript to get the mac address of a computer, to use as a multi-part User Authentication. Or can it only be done in Java??
if in Java how would I write the output to a php Variable??
Thanks in advance
Upvotes: 0
Views: 358
Reputation: 3698
The client MAC address will not be available to you except in one special circumstance: if the client is on the same ethernet segment as the server.
So, if you are building some kind of LAN based system and your clients are on the same ethernet segment, then you could get the MAC address by parsing the output of arp -n (linux) or arp -a (windows).
Upvotes: 1