PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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
NetMACToIP (Function)
In french: NetMACVersIP
Returns the IP address corresponding to a given MAC address.
Example
// 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 correspond to:
  • 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:
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: wd280com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment