1. Andres Slachevsky
  2. PowerServer 2020 or older (Obsolete)
  3. Thursday, 29 August 2019 13:42 PM UTC

Hello All,

I have a machine with Virtual Box and a Docker Virtual machine installed

Both Create a "network addapter" with ther own IP

when i open the a PowerServer PB2017 Application in any browser the of_getclientip returns the IP of them and not the Physical Network addpater i am ussing to connect to the PowerServer App.

i Disable all the networks addapter but it continue to return the "wrong" IP

Any Advice ?

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 00:23 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Andres,


The function AppeonGetClientIP(of_getclientip) return the the IP address (internal), please refer to article below for details.
https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch01s03s02.html#AppeonGetClientIP_function


The function getSessionByID provides the IP address (external), please refer to article below for details.
https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch04s01s04.html

For example:

AppeonDotNetComponent lnvo
any la_l[]
long ll_ret
string ls_clientID

ls_clientID = appeonGetClientID()

la_l[1] = ls_clientID // actually, can be empty and this will mean "take current session ID"
la_l[2] = ""

lnvo = Create AppeonDotNetComponent
lnvo.ComponentType = "4"
lnvo.TypeLib = ""
lnvo.ClassDescript = ""

 

ll_ret = lnvo.of_ExecInterface ("getSessionByID",la_l)

If ll_ret = 0 Then

MessageBox("Get session info successfully.", "Session info: " + string(la_l[2]))

End If


Regards,
ZhaoKai

Comment
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.