tags:

views:

72

answers:

2

i want to get client MAC address (in jsp,java)

it's possible? how to do?

thanks for help

+6  A: 

Unfortunately, this is not possible directly in JSP because it will not be passed as part of the HTTP Header. You would need to have some client side script to run, that has access to the network adapter to find this information.

I am not sure if an applet would be able to get this for you, but this would need extended permissions if it were possible, and a user is unlikely to allow it.

Codemwnci
+1: Though I'm not sure I agree with the "unfortunately".
Don Roby
@donroby, "unfortunately" that I couldn't answer the question with what Zenofo wanted, rather than MAC addresses being easily collected via Web traffic (which would be very very bad).
Codemwnci
@Codemwnci, We're in violent agreement!
Don Roby
+1  A: 

Why? Are you aware they can be changed by intermediiate routers? And users? So they are of no practical use except to the network layer?

EJP