hi guys,
is there any way that I can obtain the ip address of the device that I am calling an RPG program using profound ui?
thanks
obtaining device ip address.
-
- Profound User
- Posts: 88
- Joined: Tue Jun 01, 2010 11:31 am
- First Name: christopher
- Last Name: williams
- Company Name: banks dih limited
- Phone: 592-226-9584
- Address 1: thirst park
- Address 2: ruimveldt
- City: gerogetown
- State / Province: Outside Canada/USA
- Zip / Postal Code: 0000
- Country: Guyana
- Contact:
-
- Profound User
- Posts: 27
- Joined: Thu Dec 02, 2010 1:27 pm
- First Name: Greg
- Last Name: Sears
- Company Name: Profound Logic
- Phone: 937-439-7925
- Address 1: 562 Congress Park
- City: Dayton
- State / Province: Ohio
- Zip / Postal Code: 45459
- Country: United States
- Contact:
Re: obtaining device ip address.
Please take a look at the following forum link:
http://profoundlogic.com/forums/phpbb3/ ... ip+address
To further clarify:
The QDCRDEVD API will not work in a Profound UI session because there is no interactive display device associated with the session. To get the IP in a Profound UI session, you must use:
getenv("REMOTE_ADDR")
Hope this helps, let us know your results.
http://profoundlogic.com/forums/phpbb3/ ... ip+address
To further clarify:
The QDCRDEVD API will not work in a Profound UI session because there is no interactive display device associated with the session. To get the IP in a Profound UI session, you must use:
getenv("REMOTE_ADDR")
Hope this helps, let us know your results.
-
- Profound User
- Posts: 88
- Joined: Tue Jun 01, 2010 11:31 am
- First Name: christopher
- Last Name: williams
- Company Name: banks dih limited
- Phone: 592-226-9584
- Address 1: thirst park
- Address 2: ruimveldt
- City: gerogetown
- State / Province: Outside Canada/USA
- Zip / Postal Code: 0000
- Country: Guyana
- Contact:
Re: obtaining device ip address.
that solution works if I am using a browser from a pc. however, in our environment, we have thin clients connecting to a terminal server. this means that the ip address being collected is that of the terminal server, not the thin client, or any pc that is using the terminal server to access the browser.
any suggestions to handle this?
any suggestions to handle this?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: obtaining device ip address.
I don't believe that there's any way you could get the IP address under this setup -- at least using built in features of the server. The IP address is reported to Profound UI by the Apache http server on the System i -- if all requests are coming from the same address, it has no way to distinguish them.
That being said, here are some ideas, assuming that you could somehow use different URLs for different end users. I'm not sure if that is the case.
1. You can name the jobs (sort of like a workstation id) when sessions are started using a query string parameter.
You could probably encode part of the IP address (at least the host number part) into the job name like this.
2. If you are using anonymous sessions, you can pass entry parameters into the program that is called, also using query string parameters. The IP address could be passed into the initial program in this case, and stored in a QTEMP file or data area, or even by using the LDA.
If either of those would work for you, let me know and I can post some information on how to use those features.
That being said, here are some ideas, assuming that you could somehow use different URLs for different end users. I'm not sure if that is the case.
1. You can name the jobs (sort of like a workstation id) when sessions are started using a query string parameter.
You could probably encode part of the IP address (at least the host number part) into the job name like this.
2. If you are using anonymous sessions, you can pass entry parameters into the program that is called, also using query string parameters. The IP address could be passed into the initial program in this case, and stored in a QTEMP file or data area, or even by using the LDA.
If either of those would work for you, let me know and I can post some information on how to use those features.
-
- Profound User
- Posts: 88
- Joined: Tue Jun 01, 2010 11:31 am
- First Name: christopher
- Last Name: williams
- Company Name: banks dih limited
- Phone: 592-226-9584
- Address 1: thirst park
- Address 2: ruimveldt
- City: gerogetown
- State / Province: Outside Canada/USA
- Zip / Postal Code: 0000
- Country: Guyana
- Contact:
Re: obtaining device ip address.
Hi David,
we are exploring the 2 options you have suggested. can you provide some information on how to use these features?
thanks in advance.
we are exploring the 2 options you have suggested. can you provide some information on how to use these features?
thanks in advance.
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: obtaining device ip address.
See the attached documents.
- Attachments
-
- Program Parameter Interface.pdf
- (35.5 KiB) Downloaded 442 times
-
- Workstation Id in Profound UI.pdf
- (24.61 KiB) Downloaded 601 times
Who is online
Users browsing this forum: No registered users and 6 guests