Get IPAddress

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Get IPAddress

Post by dominique »

Hi

I'm trying to find a way to retrieve the ip address of a webclient. I did some approaches with Http headers without any success.
Does anyone know how to do that?

Thanks
Dominique
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Re: Get IPAddress

Post by caseywhite »

If this is on the server you should be able to use the system variable *WEBIPADDR
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Get IPAddress

Post by dominique »

Thanks it seems to work.
Dominique
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Get IPAddress

Post by MarkD »

Sometimes it gives strange results with localhost.
Post Reply