Pinned topic Retrieve client IP address in RPG web service.
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I'm writing my first RPG web service using PGMINFO parameter. Everything goes. There's a way to retrieve the client IP address?
Updated on 2012-07-23T09:35:10Z at 2012-07-23T09:35:10Z by Danilo_Cussini
Re: Retrieve client IP address in RPG web service.2011-11-09T10:33:31ZThis is the accepted answer. This is the accepted answer.
- scott_klement 2700007QFX
> There are perhaps 25 different ways of creating a web service. Can you tell us how you are creating yours?
Re: Retrieve client IP address in RPG web service.2012-07-23T09:35:10ZThis is the accepted answer. This is the accepted answer.The answer is here http://www-03.ibm.com/systems/i/software/iws/quickstart_server.html
Step 10. Specify transport information to be passed
Specify what transport information related to the client request is to be passed to the Web service implementation code (see Figure 14). The information is passed as environment variables.
The transport metadata REMOTE_ADDR is passed to Web service implementation code in an environment variable named REMOTE_ADDR.