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
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> [, <Time-out>])
<Result>: Character string
  • IP address (in xxx.xxx.xxx.xxx format),
  • Empty string ("") if a problem occurred.
<MAC address>: Character string (with quotes)
MAC address in "aa:bb:cc:dd:ee:ff" format or in "aa-bb-cc-dd-ee-ff" format.
<Time-out>: 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,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
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).
Note: 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
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