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: 31
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Get IPAddress

Post by dominique » Wed Jul 03, 2019 11:52 pm

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: 98
Joined: Thu May 26, 2016 1:17 am

Re: Get IPAddress

Post by caseywhite » Thu Jul 04, 2019 3:00 am

If this is on the server you should be able to use the system variable *WEBIPADDR

dominique
Posts: 31
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Get IPAddress

Post by dominique » Thu Jul 04, 2019 3:15 pm

Thanks it seems to work.
Dominique

MarkD
Posts: 606
Joined: Wed Dec 02, 2015 9:56 am

Re: Get IPAddress

Post by MarkD » Fri Jul 05, 2019 9:19 am

Sometimes it gives strange results with localhost.

Post Reply