Help / WLanguage / WLanguage functions / Communication / Net functions
  • Number of IP addresses
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Returns the IP (Internet Protocol) address of a computer.
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.
AndroidAndroid Widget Caution: This information is available up to Android 10. From Android 11, this information is no longer available: This function returns an empty string.
// Displays the IP address of local computer
<Result> = NetIPAddress([<Computer name>] [, <Index>])
<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 desired <Index>.
<Computer name>: Optional character string
Name of the 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.
<Index>: Optional integer
Index of the 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 index of the first address is set to 0.

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.
  • To list the different IP addresses of a computer (IPV4 and/or IPV6), use NetListIPAddress.
Component: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Video NetIPAddress


09 Mar. 2019

Last update: 06/12/2023

Send a report | Local help