aspose file tools*
The moose likes JSP and the fly likes get mac addresss of client system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "get mac addresss of client system" Watch "get mac addresss of client system" New topic
Author

get mac addresss of client system

naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
Hi,

I want to get the MAC address of the client system on which my page is running.I am using jdk1.5 .

please help


Thanks in advance
Naveen Jain
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
That's not possible. If you want to limit your web page to IE users you may be able to embed some ActiveX object that can access the MAC, but chances are the user/the browser won't allow that object to run.

What is the purpose of wanting to know the MAC?


Ping & DNS - my free Android networking tools app
naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
Hi,

I wants a solution which can run on at least IE and mozilla browser. actually we are providing a free wifi service to our customers but only one time, so i need to identify the user uniquely for that i think MAC is a good option so that customer can not get our free service more than once.

Have you any idea to get MAC address on any browser or any other idea to identify the user's machine uniquely.

Thanks for your reply


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Java can't get at the MAC. You could embed a signed applet that uses JNI to get at that information, but that would be a something of a hack.

Could you provide users with a one-time code that they need to enter to use this service?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Scratch ActiveX then. It won't run on Mozilla. Then again, the only ActiveVirus[TM] that I permit to operate even under IE is the Windows Update - because Microsoft doesn't offer a an option not to, and the alternative is to not get this afternoon's shipment of critical Windows Security Updates.

A simple cookie will be enough to block most honest people. A one-time access code works even better.

If you really wanted hardware-level detection, I suppose you could get LinkSys Linux-based WiFi routers and hack the OS. With an option to push the ARP tables back to a central server if you expect people to wander around trying different WiFi access points. Assuming you have more than one access point.

Customer surveys are for companies who didn't pay proper attention to begin with.
dhaval yoganandi
Ranch Hand

Joined: Jun 06, 2009
Posts: 35

If you have a java library which can get a MAC address of local computer then why don't you write a applet? Just give it a try.


a.k.a stalker.
 
wood burning stoves
 
subject: get mac addresss of client system