I was asked to write a servlet that collects client's details such as ip, mac address etc.
getting his IP is pretty straight-forward (request.getRemoteAddr()
) but I dont find an elegant way to get his MAC address.
seems reasonable that the web server has access to data such as Mac address etc, since it gets the TCP packets and all. does this data registers somewhere? is it accessible?
(I'm working on top of Tomcat6)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…