1. Andres Slachevsky
  2. PowerServer 2020 or older (Obsolete)
  3. Monday, 28 May 2018 12:24 PM UTC

Any way to get the Current Server where the application is running?
i have to servers A-Development B-Producction

i runtime i like to show the servername (or IP) where  application is currently been executed 

 

Marco Meoni Accepted Answer Pending Moderation
  1. Monday, 28 May 2018 18:35 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Andres,

1) include C:\inetpub\wwwroot\appeon\developTempFile\appeon_workarounds\appeon_workarounds.pbl into your application

2) Add the following code to retrieve the IP address


apb = CREATE AppeonExtFuncs
ls_ip = apb.of_gethttpinfo('host')

Best,

Marco

Comment
  1. Andres Slachevsky
  2. Tuesday, 29 May 2018 12:25 PM UTC
Thanks



it works.



 

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.