Flex Adobe Air get Mac Address
Posted on Thursday, May 12, 2011
|
5 Comments
var networkInterface : Object = NetworkInfo.networkInfo.findInterfaces();
var networkInfo : Object = networkInterface[0];
var physicalAddress : String = networkInfo.hardwareAddress.toString();
what if i had some virtual adapters as well.
ReplyDeleteif the original ethernet adapter is not on "0" index then what?
well , here only shown a sample. you can use foreach statement or loop statement.
ReplyDeleteGetting an empty string for networkInfo.hardwareAddress in Mac OS X.
ReplyDeleteString is empty also(
ReplyDeleteis it a virtual pc. what is your network card status.
Delete