Translate

> > Flex Adobe Air get Mac Address

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();

Comments:5

  1. what if i had some virtual adapters as well.
    if the original ethernet adapter is not on "0" index then what?

    ReplyDelete
  2. well , here only shown a sample. you can use foreach statement or loop statement.

    ReplyDelete
  3. Getting an empty string for networkInfo.hardwareAddress in Mac OS X.

    ReplyDelete
  4. Replies
    1. is it a virtual pc. what is your network card status.

      Delete

Powered by Blogger.