SocketTools .NET Edition

SocketWrench.PhysicalAddress Property

Gets a value which specifies the MAC address for the local system's network adapter.

[Visual Basic]
Public ReadOnly Property PhysicalAddress As String
[C#]
public string PhysicalAddress {get;}

Property Value

A string which specifies the network adapter MAC address.

Remarks

The PhysicalAddress property returns the Media Access Control (MAC) address for an Ethernet or Token Ring network adapter installed and configured on the local system. Since it is guaranteed that every adapter is assigned a unique address throughout the world, this value can be safely used for identification purposes. It is possible that this property will return an empty string, which indicates that it could not find a network adapter.

If more than one physical network adapter is installed on the system, this property will return the MAC address of the first adapter that it finds.

See Also

SocketWrench Class | SocketTools Namespace