Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

get MAC address?  RSS feed

 
Alex Hank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can get the ip address of the user with request.getRemoteAddr().

Is it possible to get the MAC address of the user?

Alex

[Edited to try and avoid confusion between the terms MAC (as Media Access Control) and Mac (as short for Macintosh)]
[ June 15, 2005: Message edited by: Bear Bibeault ]
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To the best of my knowledge you cannot do that in Java. You would have to run some command line tool and parse the result (such as ipconfig for win) or go native and use JNI.

Also note that a computer may have more than one MAC address.
 
Alex Hank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the info
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!