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)
======================================================================
- duplicates
-
JDK-4465502 Low level network methods: It would be nice to get the MAC as "byte[6]"
-
- Closed
-
-
JDK-4470026 Add NetworkInterface.getHardwareAddress()
-
- Closed
-
-
JDK-4691932 Programmatic access to network parameters
-
- Resolved
-