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.
Versions 23 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 23
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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.
AndroidAndroid Widget You cannot retrieve the addresses of a computer other than the one onto which the application is run.
<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

  • WEBDEV - Server code In a WEBDEV site, NetIPAddress returns the IP address of the server on which the site is installed.
    To find out the IP address of the Web user, you must use BrowserIPAddress.
    Caution: If the Web user is behind a router, BrowserIPAddress returns the IP address of router.
  • 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Java wd230java.jar
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment