Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4143901

Need a method to return hardware MAC address

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0, 1.3.0, 1.4.0
    • core-libs
    • generic, x86
    • generic, windows_95, windows_2000



      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)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: