This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
i find that i can use this way to get the ip and host name:
hostInfo = InetAddress.getLocalHost(); ip = hostInfo.getHostAddress(); hostName = hostInfo.getHostName();
but still dont know how to get the MAC address.
Any help? Lester
Joined: Oct 12, 2000
you can't get the MAC address. It's not exposed as you have no business using it. The network is only concerned with ip addresses except at the hardware level which is deeper in the network architecture than what Java is designed to handle.