ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
NetMACAddress (Function)
In french: NetAdresseMAC
Returns the MAC address (physical address) of one of the network cards found on the computer.
AndroidAndroid Widget Caution: This information is available up to Android 10. From Android 11, this information is no longer available: This function returns an empty string.
A common solution to identifying a device is to create a GUID file and store it in your database.
Example
// Returns the MAC address of the computer
Info(NetMACAddress())
Syntax
<Result> = NetMACAddress([<Rank of network card>])
<Result>: Character string
  • MAC address (in "aa:bb:cc:dd:ee:ff" format),
  • Empty string ("") if a problem occurs.
<Rank of network card>: Optional integer
Used to specify the number of the network card whose MAC address must be retrieved (for the computers equiped with several network cards). The rank of the first card is set to 0.
If this parameter is negative, the address returned will be the one of the first network card.
Component: wd290com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/09/2024

Send a report | Local help