tags:

views:

106

answers:

4

hello,

i want to read MAC address of machine from Adobe AIR. I am using flex 3 and AIR 2.

how can i do this

the main purpose is i want to install that product in only one machine

A: 

As far as I can tell, you cannot do it with Flex/AIR alone - you can however use the NativeProcess API to communicate with a Java/C program that can do this for you.

If you want to limit your application to just one machine, why don't you just install it manually without giving away the setup file - is it a remote machine? Even in that case you should be able to do a remote installation, right?

Amarghosh
thnx very much amar ghosh....the product will be subscribed by 10 users and can be installed only on 10 machines...so i m planning to track the mac address
mendieta
@mendieta So you plan to get their MAC addresses in advance and hardcode them?
Amarghosh
@mendieta is this a web based application? In that case, you can assign unique identifiers to your users and do a one time mapping of those id's with their IP addresses - just deny service if the request comes from a different id/ip combination.
Amarghosh
A: 
var ni:NetworkInfo = NetworkInfo.networkInfo;
var interfaceVector:Vector.<NetworkInterface> = ni.findInterfaces();

Taken from the Network Info sample in the desktop version of Tour de Flex.

James Ward
A: 

thnx again amar,

it is desktop application.the product will be subscribed by 10 users and can be installed only on 10 machines.i tried to track IP but it is not unique in lan ..like in office lan.

So i m finding different way

kiro
A: 

hello james,

thnaks for helping.I am using flex 3 and AIR 2 ,so in that case can you tell me will i be able to use NetworkInfo class?

mendieta
You should probably post this as a comment on my answer. But yes, this will work with Flex 3 and AIR 2 as long as you have overlaid the AIR 2 SDK on top of your Flex 3 SDK.
James Ward