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

How to get MAC Address in Java  RSS feed

 
Neir Kate
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Does anyone know, how to get the MAC Address (Physical Address) from Java code?

Thanks in advance,
Regards,
Neir Kate
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neir,
There isn't a Java API for this. However, you can use Runtime.exec() and get the value from your operating system.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!