File Exchange

image thumbnail

Get computer MAC address

version 2018.07.07 (48 KB) by Xiangrui Li
Get MAC address for different operating systems

8 Downloads

Updated 08 Aug 2018

View Version History

GitHub view license on GitHub

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Return one or all MAC address of a computer

Cite As

Xiangrui Li (2020). Get computer MAC address (https://github.com/xiangruili/MACAddress), GitHub. Retrieved .

Comments and Ratings (4)

Hayeong Oh

Great! Thank you very much!

Harry Dymond

Does what it says on the tin; thanks for sharing!

Xiangrui Li

Yes, the mex is for Windows only for now, but the m file works for different operating system by using system command.

Daniel von Asmuth

The code does not work for different Operating Systems, just Windows NT (my own code is no different:-)
It finds multiple MAC addresses because a computer may have several network interfaces. Mac addresses are use by Token Ring, Ethernet and WiFi networks and VPN software too.

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!