Returns the MAC address corresponding to a given IP address.
// Returns the MAC address
<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.
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).
- This function can only be used for the computer connected via a local network.
- The IP addresses in IPv6 format are not supported.
Unit examples (WINDEV): The network functions (NetXXX)