# Get MAC addresses using Wolfram Language?

**URL:** <https://community.wolfram.com/t/get-mac-addresses-using-wolfram-language/9725>\
**Category:** Questions\
**Tags:** external-interfaces\
**Created:** [December 7, 2016, 12:06pm UTC](https://community.wolfram.com/t/get-mac-addresses-using-wolfram-language/9725 "2016-12-07T12:06:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erdemuguz1](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@erdemuguz1](https://community.wolfram.com/u/erdemuguz1)\
**Post date:** [December 7, 2016, 12:06pm UTC](https://community.wolfram.com/t/get-mac-addresses-using-wolfram-language/9725/1 "2016-12-07T12:06:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [December 7, 2016, 1:54pm UTC](https://community.wolfram.com/t/get-mac-addresses-using-wolfram-language/9725/2 "2016-12-07T13:54:21Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![erdemuguz1](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@erdemuguz1](https://community.wolfram.com/u/erdemuguz1)\
**Post date:** [December 7, 2016, 4:07pm UTC](https://community.wolfram.com/t/get-mac-addresses-using-wolfram-language/9725/3 "2016-12-07T16:07:31Z")

</div>

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
