JDK-4143901 : Need a method to return hardware MAC address
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.2.0,1.3.0,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,windows_95,windows_2000
  • CPU: generic,x86
  • Submitted: 1998-05-29
  • Updated: 2002-05-27
  • Resolved: 2002-05-27
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description

Name: diC59631			Date: 05/29/98


Please add a java.net call to return
the MAC address for the local machine.
(this is the 48-bit network ethernet
address).

In addition to raw-packet network protocols,
having this available is very useful
for computing "uniqe in the computing
universe" numbers.  Such a capability
is actually required by certain
networking protocols.

Thanks,

Rick
(Review ID: 32433)
======================================================================

Name: rmT116609			Date: 05/21/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION : Microsoft Windows 2000
[Version 5.00.2195]


A DESCRIPTION OF THE PROBLEM :
The Class InetAddress should have a method

public String getMacAddress()

or

public byte[] getMacAddress()

It should returns the mac address of the network card.


CUSTOMER WORKAROUND :
The workaround a very difficult and work not on all platforms. The best is at:

http://forum.java.sun.com/thread.jsp?forum=4&thread=245711
(Review ID: 146838)
======================================================================

Comments
EVALUATION 4691932 is collecting the bugs/rfes regarded to programmatic access to network parameters. ###@###.### 2002-05-27
27-05-2002