Get MAC addresses using Wolfram Language?

Hello,

I am going to deliver some CDF files and I want them to be used only in the computers that I choose. I would like to be able to read the MAC addresses for the computers and check them against coded MAC address. But I could not find the command for that as there is a simple one for MATLAB, i.e., getmac.

there is a $MachineID but it is related to the installation of CDF player or Mathematica. I need an “unique identifier” for this purpose (for linux, windows, and mac). Is there a command for that?

Thank you

Erdem

I think $MachineID is the value you should look at. That should be related to the entire Machine and should be a unique identifier.. What is wrong with it?

You could get the mac address by filtering out:

RunProcess[{"ifconfig", "-a", "ether"}]

on a mac and linux platforms, On windows it is called ipconfig I believe. Note that mac addresses can be easily spoofed (using ifconfig actually).

Nothing wrong about $MachineID I just thought It is related to the Mathematica or CDF player installation. So if I re-install CDF player or Mathematica it will change. If it is something something about the computer not Wolfram product installation. It will work fine for me.

Thank you

Erdem