Karandeep Singh
Karandeep Singh

Reputation: 1279

MAC address in PHP/JavaScript/.NET?

How can I get MAC address with using PHP, JavaScript and .NET ?

Upvotes: 0

Views: 870

Answers (5)

Nikola Sivkov
Nikola Sivkov

Reputation: 2852

you can't do it with Javascript or php , only with a locally ran application

Upvotes: 0

mplungjan
mplungjan

Reputation: 177684

You would need an HTA - HTml Application or a native windows program: http://www.google.com/search?q=Win32_NetworkAdapterConfiguration+hta

Upvotes: 1

prcvcc
prcvcc

Reputation: 2230

also, anybody CAN change his MAC address. if what you are trying to do is for security purposes forget about it

Upvotes: 1

Your Common Sense
Your Common Sense

Reputation: 157828

I doubt you really need it.
Because there is no use of MAC addresses over internet, but on LAN only. JS has nothing to do it, but some ActiveScript can get it but it will ask user permission to install and works on IE only

Upvotes: 1

Andy Groff
Andy Groff

Reputation: 2670

MAC Addresses are not sent in HTTP headers... and I can't imagine javascript has access to them. I think you're out of luck... but I could be wrong.

Upvotes: 1

Related Questions