Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need MAC address of client machine in servlet

 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I need a feature in my web application. I want to restrict user login on the basis of IP address and MAC address. To achieve this feature i am able to find LAN IP address and i searched the internet to find MAC address code. But i am unable to get any help. Can you guys please show me a way or workaround for the problem.



Thanks in advance
Jagdeep
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MAC address isn't sent with the requests*. It's only available on the client machine. That means that the server can't get to it.

* Well, apart from perhaps DHCP requests, but that's not what we're talking about here.
 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:The MAC address isn't sent with the requests*. It's only available on the client machine. That means that the server can't get to it.

* Well, apart from perhaps DHCP requests, but that's not what we're talking about here.






Hey Rob, Could you please suggest me some workaround for this.
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't think of any.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic