|
|
|
|
- MAC address and IP address
NetMACToIP (Function) In french: NetMACVersIP Returns the IP address corresponding to a given MAC address. // Returns the IP address Info(NetMACToIP("11:22:33:44:55:66")) Syntax
<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 be: - an integer corresponding to the number of milliseconds,
- a Duration variable,
- the duration in a readable format (e.g., 1 s or 10 ms).
If this parameter is not specified, the value is set to 10000 (10 seconds). 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.
Related Examples:
|
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
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|