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 / Funciones específicas de la Web / Funciones del navegador
  • Accepting (or not) the return address
  • Server IP address
  • Pre-launched sessions
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 address of the client computer connected to the WEBDEV website.
Remark: If the Web user is behind a router, the IP address will be the one of the router.
To get this information from a web service, use WebserviceClientIPAddress.
Ejemplo
// Returns the IP address of the Web user
sClientAddress is string = BrowserIPAddress()
Sintaxis
<Result> = BrowserIPAddress([<Accept return address>])
<Result>: Character string
IP address of the computer of the Web user:
  • in IPv4 format: xxx.xxx.xxx.xxx. For example: 195.196.100.1
  • in IPv6 format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
<Accept return address>: Optional boolean
  • True to accept the initial address specified in the HTTP header,
  • False (default) to refuse this address. In this last case, the IP address is retrieved in the environment variable (REMOTE_ADDR) defined by the Web server.
By default, the address specified in the HTTP header is rejected for security reasons.
PHP This parameter is not supported.
Observaciones
WEBDEV - Código ServidorWindowsLinux

Accepting (or not) the return address

The address returned by the BrowserIPAddress function may not correspond to the Internet user's address (e.g. if a non-transparent proxy or Load Balancer is used).. In this case, BrowserIPAddress returns the IP address of the proxy or Load Balancer.
If the return address is accepted, BrowserIPAddress tries to read the original address specified in the HTTP headers (most proxies provide the original address in the HTTP headers). However, this address must be used with caution because it is not reliable and can be completely wrong.
Notes:
  • If the user passes through several proxies, several addresses can be returned.. In this case, the list of recovered IP addresses is of the form:
    Internet user IP, Proxy 1 IP, ..., Proxy N IP
  • If the original address is not found or is invalid (too long for example), the "standard" address is sent.
  • In test mode, BrowserIPAddress returns the address of the development computer.

Server IP address

The server IP address is returned by NetIPAddress.

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300page.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

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