• Post Reply Bookmark Topic Watch Topic
  • New Topic

need MAC address of client machine in servlet  RSS feed

 
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
 
Sheriff
Posts: 21330
87
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
Posts: 21330
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't think of any.
 
please buy my thing and then I'll have more money:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!