1. David Vasconcelos
  2. PowerServer Web
  3. Wednesday, 14 August 2019

Laptops are configured to have wireless access, network access and a verizon cell card.  Becuase of this these laptops have multiple IP address.  If I use the appeongetclientip it only shows one.  I need to get all.  Is there a way to get all the ip addresses on laptop?


PB 2017 R3, Powerserver 2017, IIS server.



Dave V.

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
If you query the network adapters in a PowerServer app, will it get the ones on the client or the server?

My Winsock example also has a function to get IP addresses and also supports IPv6.
  1. Roland Smith
  2. Monday, 19 August 2019
Any time I try to access the environment variable the system crashes. For example I am doing a messagebox just trying to display the processbitness and it crashes. Is there some DLL I may be missing? Note: Crashing in Powerserver (web) this works perfectly fine in Client server.
  1. David Vasconcelos
  2. Tuesday, 20 August 2019
more info... if I move the envirornment variable to local variables I.E. li_process = le_env.processbitness then run the messagebox against that variable it is now working..
  1. David Vasconcelos
  2. Tuesday, 20 August 2019
There are no comments made yet.
  1. Friday, 16 August 2019
  2. PowerServer Web
  3. # Permalink
Chris Pollach Accepted Answer Pending Moderation

Hi David;

   My STD Integrated Framework can do that for you.

Actual LapTop test with PowerServer Web ...

FYI:  http://chrispollach.blogspot.com/2019/08/stdif.html


Regards .... Chris

Chris, I did change the parameter. the code mentioned in my previous comment mentions it is there because of a Appeon Bug. So I am guessing that's why even when I forced the code to get the adapter info it is still not working. I ended up creating a work around. I coded a Powershell script that will dump ip address into a file and then I can read/check the file and get what I need. Thanks.
  1. David Vasconcelos
  2. Thursday, 22 August 2019
That Appeon bug is very old & not relevant in PS versions of today. As you can see from my earlier post of running my code from PS App, it does work 100% for me.

Yes, always good to just do it the old external way. Just running something like an "ipconfig /all | >ipinfo.txt" would do it as well.

Glad that you found something that works for you. ;-)
  1. Chris Pollach
  2. Thursday, 22 August 2019
Thanks Chris and Roland for help, I would prefer to use the api call vs powershell but for now it is working. If I have time I may revisit later.
  1. David Vasconcelos
  2. Thursday, 22 August 2019
There are no comments made yet.
  1. Friday, 16 August 2019
  2. PowerServer Web
  3. # 1
Zhao Kai Accepted Answer Pending Moderation

Hi David,

There is no way to get all ip addresses on laptop.

The function AppeonGetClientIP return the the IP address (internal), please refer to article below for details.


The function getSessionByID provides the IP address (external), please refer to article below for details.

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


There are no comments made yet.
  1. Thursday, 15 August 2019
  2. PowerServer Web
  3. # 2
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.