i want to write one servlet which will give me MacID of my client from whom request came
2] also the IP Address Of client although it came through proxy server
help me it is urgent
Joined: Aug 17, 2005
Java has no native way to get a MAC address - you will have to write some native code for each platform. Then again it will probably be useless to you as a mac address changes as the packet moves through different network segments.
Proxy servers don't tell you the client IP.
Joined: Jan 14, 2009
Subject : How to get Mac Id of my client machine
I want java code to get client MAC Address.
Right now i am able to get Client IP perfectly.But i want MAC address for that IP.
can any one help me?
Thanks in advance.
Joined: Mar 22, 2005
It's not possible in a servlet - the HTTP request simply doesn't contain that information.
For a desktop app, you'll need to find a native API that returns that information, and access it through JNI, just like Darren mentioned.