www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to get client MAC address using javascript

  1. #1
    Join Date
    Apr 2005
    Posts
    104

    Talking how to get client MAC address using javascript

    Hi guys,

    Is there a possible that javascript can get the MAC address of the client who accessing my website?

    Thanks & Regards,
    Mark

  2. #2
    Join Date
    Sep 2004
    Location
    Earth
    Posts
    294
    No. Security settings prevent you from getting this information. On the client side or over a network website you can do it like this:

    Code:
    var strComputer = ".";
    var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\cimv2");
    var e = new Enumerator(objWMIService.ExecQuery("Select * from Win32_NetworkAdapter","WQL",48));
    
    for (;!e.atEnd();e.moveNext())
    {	objItem = e.item();
    	WScript.Echo ("MACAddress: " + objItem.MACAddress)
    }

  3. #3
    Join Date
    Nov 2007
    Posts
    2
    See this article
    www.qualitycodes.com/tutorial.php?articleid=19

    edit by WebJoel:
    Note: -new users only need to post ONCE. All new user's posts are held in Moderation Queue for review. Once approved, they are permitted and sent to public.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles