File Exchange

image thumbnail

Get computer MAC address

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

4 Downloads

Updated 08 Aug 2018

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

Comments and Ratings (2)

Xiangrui Li

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

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.

Updates

2018.07.07

2nd output returns more information including adaptor's FriendlyName, Description, MAC_address, IPv4_address, and IPv6_address.

2017.07.07

2nd output returns more information including adaptor's FriendlyName, Description, MAC_address, IPv4_address, and IPv6_address.

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