Returns the IP address corresponding to a given MAC address.
// Returns the IP address
<Result> = NetMACToIP(<MAC address> [, <Timeout>])
<Result>: Character string
- IP address (in xxx.xxx.xxx.xxx format),
- Empty string ("") if a problem occurred.
<MAC address>: Character string
MAC address in "aa:bb:cc:dd:ee:ff" format or in "aa-bb-cc-dd-ee-ff" format.
<Timeout>: Optional integer
Maximum duration (in milliseconds) during which the MAC address can be converted into an IP address. This parameter can correspond to:
If this parameter is not specified, the value is set to 10000 (10 seconds).
- an integer corresponding to the number of milliseconds,
- a Duration variable,
- the duration in a readable format (e.g., 1 s or 10 ms).
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.
Unit examples (WINDEV): The network functions (NetXXX)