Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MAC Address

 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all..
If any body know how to get the mac address(physicall address) of a client system using JSP,Please let me know..

binypanackal@gmail.com
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pure Java (and thus JSP) can't do this. Either you need to use JNI to access system calls, or use Runtime.exec to run some utility that can do this.

But JSPs run on a server, where the MAC address is always the same - how about looking it up once manually, and storing it somewhere in the web app?
 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot for your replay.

Now i decided to youse ".hta" and "jscript" for getting mac id.
One problem existing now is eache time when i access the .hta page am getting one popup asking; do you want to run or save this file.Is there any possiblity to avoid this pop up and run that file directly in the client machine..

Regards,
Biny panackal binypanackal@gmail.com
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm certain that you can't avoid this popup, since running code that accesses the system at such a deep level should not be run without the user explicitly consenting to it.

Since this is a client-side issue, I'm moving the topic to the HTML and JavaScript forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic