PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • MAC address and IP address
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 (with quotes)
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).
Note:
  • 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
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment