Jump to content

Getting clients MAC with javascript

- - - - -

  • Please log in to reply
2 replies to this topic

#1
ferovac

ferovac

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
A simple question is it possible to get a clients MAC address with javascript in a webpage?

If so how exactly would one do such a thing?

Also is there a jQuery function for that ?

Based on my basic knowledge of javascript i would say no.




Just a quick edit here, i assumed here that such a thing can be done only by javascript since it is the only client side script sent from the website, just now i found some articles stating that a MAC can be obtained from a IP address, needless to say that would probably be the MAC of my local router (the one im my house ).

So the question remains, somewhat modified : can i from my server get the MAC address that is related to connected clients IP ???

Now as im reading this it seem that i've found myself in the wrong section, my apologizes!

Edited by ferovac, 01 May 2011 - 05:21 AM.


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I was trying to do this a while ago, as near as I could determine, the answer is simply "no". This is actually a good thing, as it protects the privacy of the client computer.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Yes, Javascript by some browsers is often compiled in to bytecode and run under a virtual machine as well (Firefox, Chrome,) leaving system access not likely.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users