Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get MAC Address in Java

 
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
Marshal
Posts: 35279
384
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