Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAC addresses in JavaScript

People also ask

What does FFFF FFFF FFFF MAC address means?

ffff. ffff , this is the special reserved MAC address indicating a broadcast frame. This is what makes an ARP Request a broadcast. Had Host A chosen to send this frame using a specific host's MAC address in the destination, then the ARP request would have been unicast.

How do I find a client's MAC address?

To find the MAC ID / Address of a system, either: Locate the MAC ID label on the back plastics of the system. On integrated thin clients, the MAC ID label is located on the back, below the power input jack. On thin client computers, the MAC ID label is located on the back of the system, below the certification label.

How do I find the client MAC address in node JS?

Net client in node js does not provide the mac address. You have the choice between : 1- sending the @mac your self: i mean in the client side you send the Mac address as data when you establish connection with the server.


I concur with all the previous answers that it would be a privacy/security vulnerability if you would be able to do this directly from Javascript. There are two things I can think of:

  • Using Java (with a signed applet)
  • Using signed Javascript, which in FF (and Mozilla in general) gets higher privileges than normal JS (but it is fairly complicated to set up)

The quick and simple answer is No.

Javascript is quite a high level language and does not have access to this sort of information.


No you cannot get the MAC address in JavaScript, mainly because the MAC address uniquely identifies the running computer so it would be a security vulnerability.

Now if all you need is a unique identifier, I suggest you create one yourself using some cryptographic algorithm and store it in a cookie.

If you really need to know the MAC address of the computer AND you are developing for internal applications, then I suggest you use an external component to do that: ActiveX for IE, XPCOM for Firefox (installed as an extension).


Nope. The reason ActiveX can do it is because ActiveX is a little application that runs on the client's machine.

I would imagine access to such information via JavaScript would be a security vulnerability.


If this is for an intranet application and all of the clients use DHCP, you can query the DHCP server for the MAC address for a given IP address.