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
No, you only have the remote IP, the network layers below are out of the picture. You'd have to resort to some ARP lookup, as matt's answered, but that is not very straightforward, specially in Java. See this related question.