Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get mac address by Chrome extension?

I want my extension be able to send the users' physical mac address to a server.

Is there any to get the the client mac address in a Chrome extension?

like image 310
worldterminator Avatar asked Mar 09 '14 10:03

worldterminator


1 Answers

With an extension it is definitely not possible.

The closest you can get is the IP addresses and all network interfaces via the chrome.system.network API that is available to chrome apps - but that doesn't include the MAC address, as of Chrome 33.


We solved the problem with an external command (.cmd on windows, .sh on linux) that we call via the native messaging API. The external script simply outputs the current MAC address.

like image 162
cweiske Avatar answered Oct 21 '22 04:10

cweiske