Posted By

martinB on 11/12/09


Tagged

mac network hardware ethernet address dotnet


Versions (?)

Get Ethernet network card (MAC) address


 / Published in: Maxscript
 

Taken from a scriptspot posting by 3d-kstudio.com

  1. NWIF = dotnetClass "System.Net.NetworkInformation.NetworkInterface"
  2. the_Mac_array = NWIF.GetAllNetworkInterfaces() -- this is an array of all the Networks
  3. the_PhysicalAddress_Array = #()
  4. for net in the_Mac_array where (net.NetworkInterfaceType.toString()) == "Ethernet" do append the_PhysicalAddress_Array ((net.GetPhysicalAddress()).toString())
  5. print the_PhysicalAddress_Array

Report this snippet  

You need to login to post a comment.