Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 49 - Getting The IP Address  (Read 7277 times)
Reuben B.
Four Js
Posts: 1116


« on: October 01, 2020, 03:40:21 am »

In the Genero Application Server architecture, a request to start a Genero application comes in via a Web Server that results in the launch of the application.  The Web Server has some information about the request and that information can be passed through to the Genero application.  This includes information such as the IP address.

The techniques to retrieve this information are different for a web application and a web service.  With a web application this information is passed through as an environment variable, whilst for a web service this is passed through as a request header and can be read in a number of different ways.

A common error is to try and utilise the technique for a web application with a web service.

Read more about these techniques and why there is a difference at https://4js.com/ask-reuben/ig-49/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Benjamin G.
Posts: 130


« Reply #1 on: August 09, 2022, 05:06:03 pm »

Hi,

Little error :

LET ip_address = FGL_GETENV("FGL_WEB_SERVER_REMOTE_ADDR")

must be

LET ip_address = FGL_GETENV("FGL_WEBSERVER_REMOTE_ADDR")

Regards
Reuben B.
Four Js
Posts: 1116


« Reply #2 on: August 12, 2022, 06:40:22 am »

Thanks, I must investigate getting a link added for reporting typos, broken links etc on these pages similar to what is available in the Docs

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines