This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes MAC Address Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "MAC Address" Watch "MAC Address" New topic
Author

MAC Address

biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
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


Biny Balan
binypanackal@gmail.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
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?


Android appsImageJ pluginsJava web charts
biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
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
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: MAC Address
 
Similar Threads
To: xie tuo (sorry 4 doing this)
How to lock java app for single PC
How to get MAC Address in Java
MAC Address
Can i get mac address by using Applets