UtilsLib REALbasic Plugin

GetEthernetAddress Method

To get the MAC id from the Ethernet card of the computer, use the GetEthernetAddress function.

GetEthernetAddress(
   iID as Integer) as String

Parameters

iID
Id of the Ethernetcard to get the address from. (This value is 0 based, that is 0 will return 1st card, 1 2nd and so on)

Returns

String

Remarks

If your Computer does not have an Ethernet card then a empty string will be returned.

Notes:
Retrieving information for multiple Ethernet cards is currently only supported on Windows x86, so only iID = 0 will work on MacOS.

It was decided not to develop this function further because REALbasic now has this functionality built in, because of that then there is no Linux implementation of this function.

The REALbasic built in function for this is:
System.GetNetworkInterface(0).MACAddress

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows

    See Also

    GlobalMethods Global