What is the MAC address? What is a unique identifier for a PC?

I have a PC with two cores, it has two MAC addresses: 00-1D .... and 00-21 ..... Are these identifiers for two cores? If I want to get a unique identifier for this PC, how to get it using a Java call? Maybe in Java there is something like "System.getId ()"?

Franc

+3
source share
5 answers

MAC stands for Media Access Control. The MAC address is usually a unique identifier for your network adapter. You must have two network adapters on your PC (LAN, WLAN?).

, , JAVA: Java (, )

.NET: http://sowkot.blogspot.com/2008/08/generating-unique-keyfinger-print-for.html

+4

( , , , MAC-, , , )

, Java

, enduser. , enduser . , ( , ).

+4

MAC- - , . ( , MAC- ).

, dongle (, Java-). , .

+4

Google:: Media Access Control (MAC-) - , .

. - .

java.net.NetworkInterface java.net.InetAddress MAC.

+2

MAC - , , 4 . , , - , MAC . DIP- (Dual Inline Pins), , IRQ, ..

, .

There is no portable way to get the MAC address, theoretically you can use the command ifconfigfor * nix / Linux variants. For a Windows environment, you can use the command ipconfigusing either, you could find the appropriate adapter in question ... as shown in this example under Linux ... my network adapter is called "eth0" ...

ifconfig eth0 | grep HWaddr | cut -d \ t -f4

will return:

  HWaddr 00: 02: 03: 04: 05: 06
+2
source

Source: https://habr.com/ru/post/1736568/


All Articles