Link Details

Link 27288 thumbnail
User 232617 avatar

By semilla
via thecodersblog.blogspot.com
Published: Jun 23 2007 / 11:14

Code to get the MAC address/es from the network card/s in Windows and Linux
  • 10
  • 1
  • 1343
  • 494

Comments

Add your comment
User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

Better way on >=java-6.0 is to use the InetInterface#getHardwareID() (or something like that) API

User 183924 avatar

afsina replied ago:

0 votes Vote down Vote up Reply

NetworkInterfacae
public byte[] getHardwareAddress()

Returns the hardware address (usually MAC) of the interface if it has one and if it can be accessed given the current privileges.

User 232617 avatar

semilla replied ago:

0 votes Vote down Vote up Reply

Thanks for the addiontional information!!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (1)