1. David Vasconcelos
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 14 August 2019 18:55 PM UTC

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.

 

Thanks 

Dave V.

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 16 August 2019 03:16 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # Permalink
Comment
  1. Roland Smith
  2. Monday, 19 August 2019 19:56 PM UTC
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. Helpful
  1. David Vasconcelos
  2. Tuesday, 20 August 2019 12:03 PM UTC
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. Helpful
  1. David Vasconcelos
  2. Tuesday, 20 August 2019 12:53 PM UTC
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. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 August 2019 01:53 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

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

HTH

Regards .... Chris

Comment
  1. David Vasconcelos
  2. Thursday, 22 August 2019 10:35 AM UTC
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. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 22 August 2019 11:48 AM UTC
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. Helpful
  1. David Vasconcelos
  2. Thursday, 22 August 2019 12:41 PM UTC
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. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 August 2019 00:20 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

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