Get MAC address from Jetty HTTPServletRequest

Posted by Chris Thompson on Stack Overflow See other posts from Stack Overflow or by Chris Thompson
Published on 2010-05-02T22:43:42Z Indexed on 2010/05/02 22:47 UTC
Read the original article Hit count: 420

Hi all,

Does anybody know if there is a way to get the sender's MAC address from an HTTPServletRequest in Jetty? (Note: by sender, I mean immediate sender aka the last hop before my server). If there isn't a direct way, does anybody know a way to translate an IP address to a MAC address in Java?

Other note: I completely realize that MAC addresses do not leave the local subnet, and that's the intended functionality.

I know this seems like an odd question, but trust me, I know what I'm doing :-) If you're curious, I'd be happy to explain why I want this.

Thanks,

Chris

© Stack Overflow or respective owner

Related posts about java

Related posts about jetty