AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Net
  • Number of IP addresses
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the IP (Internet Protocol) address of a computer.
Caution: Only 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.
AndroidWidget Android Caution: This information is available up to Android 10. As of Android 11, this information is no longer available: This function returns an empty string.
Ejemplo
// Displays the IP address of local computer
Info(NetIPAddress())
Sintaxis
<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.
AndroidWidget Android 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.
Observaciones

Number of IP addresses

  • WEBDEV - Código Servidor In a WEBDEV website, 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.
    Attention: If the user is behind a router, the BrowserIPAddress function returns the router's IP address.
  • 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.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
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
09 03 2019

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local