PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Number of IP addresses
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
Returns the IP (Internet Protocol) address of a computer.
Versions 17 and later
Caution: Only the IPV4 addresses are returned. This operating mode is kept for backward compatibility with the earlier versions. To find out the IPV4 and/or IPV6 addresses, use NetListIPAddress.
New in version 17
Caution: Only the IPV4 addresses are returned. This operating mode is kept for backward compatibility with the earlier versions. To find out the IPV4 and/or IPV6 addresses, use NetListIPAddress.
Caution: Only the IPV4 addresses are returned. This operating mode is kept for backward compatibility with the earlier versions. To find out the IPV4 and/or IPV6 addresses, use NetListIPAddress.
Example
// Displays the IP address of local computer
Info(NetIPAddress())
Syntax
<Result> = NetIPAddress([<Computer Name>] [, <Subscript>])
<Result>: Character string
  • IP address of specified computer (in XXX.XXX.XXX.XXX format),
  • Empty string ("") if the computer has less IP addresses than the requested <Subscript>.
<Computer Name>: Optional character string (with quotes)
Name of computer to use. If this parameter is not specified, the current computer will be considered.
<Subscript>: Optional integer
Subscript of IP address in the list of computer addresses. By default, the address returned is the first address found in the list of computer addresses. The subscript of the first address is set to 0.
Remarks

Number of IP addresses

  • An IP address is found for each TCP/IP protocol installed on the same computer.
  • Versions 17 and later
    To list the different IP addresses of a computer (IPV4 and/or IPV6), use NetListIPAddress.
    New in version 17
    To list the different IP addresses of a computer (IPV4 and/or IPV6), use NetListIPAddress.
    To list the different IP addresses of a computer (IPV4 and/or IPV6), use NetListIPAddress.
Component : wd240com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Video NetIPAddress
https://youtu.be/F_naiz6PUuo

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2038-webdev-aula-32-netipaddress.html

// BTN_IP_COMPUTADOR_NETIPADDRESS

EDT_RESPOSTA=NetIPAddress()
amarildo
Mar. 09 2019