mendieta
mendieta

Reputation: 71

read MAC address of machine from Adobe AIR

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

Upvotes: 1

Views: 5201

Answers (3)

deeeptext
deeeptext

Reputation: 41

The answer "track the combination of IP address and user ID" won't satisfy my (very similar) needs. If the (laptop) computer is moved across WiFi domains, its IP address will change. If the computer is on a commerical IP provider, the IP address can often change without warning or notice.

My users don't want to deal with such problems. They don't even want to know that these problems exist!

The binding of MAC address and user ID can be done at installation time. It's not perfect, but it's pretty good.

Of course what we need is an implementation of public-private key...

Oz

Upvotes: 0

James Ward
James Ward

Reputation: 29433

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.

Upvotes: 6

Amarghosh
Amarghosh

Reputation: 59471

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?

Upvotes: 0

Related Questions