I am trying to collect a building's mac addresses, and I have created a web application using Vaadin 6(the application has other features so I have to stick with vaadin).
The problem is, I want my user to only insert his name, and for me to get his mac address automatically, but the problem is I don't know how to do it.
I was using
ip = InetAddress.getLocalHost();
mac = ip.getHostAddress();
The problem is that this code returns me my own servers ip and mac.
So the question is, how can I get the client's mac address??
Also if i can get the local ip that is so much better, but first I need the mac.
Any help is very much appreciated.