wood burning stoves 2.0*
The moose likes Applets and the fly likes MAC Address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
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: 41042
    
  43
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?


Ping & DNS - my free Android networking tools app
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: 41042
    
  43
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://aspose.com/file-tools
 
subject: MAC Address
 
Similar Threads
How to get MAC Address in Java
How to lock java app for single PC
To: xie tuo (sorry 4 doing this)
Can i get mac address by using Applets
MAC Address