ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
  • MAC address and IP address
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
NetIPToMAC (Function)
In french: NetIPVersMAC
Returns the MAC address corresponding to a given IP address.
Example
// Returns the MAC address
Info(NetIPToMAC("11.22.33.44"))
Syntax
<Result> = NetIPToMAC(<IP address>)
<Result>: Character string
  • MAC address (in "aa:bb:cc:dd:ee:ff" format),
  • Empty string ("") if a problem occurred.
<IP address>: Character string
IP address that must be converted into the "aa.bb.cc.dd" format. This IP address must be associated with a physical network card in order to be converted into a MAC address.
Remarks

MAC address and IP address

The MAC address is the physical address specified on the network cards of MAC computers. The IP address is the address used to communicate between several computers via the IP protocol (Internet Protocol).
Remark:
  • This function can only be used for the computer connected via a local network.
  • The IP addresses in IPv6 format are not supported.
Related Examples:
The network functions (NetXXX) Unit examples (WINDEV): The network functions (NetXXX)
[ + ] Using Netxxx functions on the network addresses.
You can:
- get the IP address
- get the MAC address
- transform an IP address into MAC address
- transform a MAC address into IP address
Component: wd290com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help