Remote Port (aka Source Port)

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
ricturner
New User
Posts: 8
Joined: Wed Feb 05, 2014 6:10 pm
First Name: Ric
Last Name: Turner
Company Name: Jano Justice Systems, Inc
Phone: 6013627601
Contact:

Remote Port (aka Source Port)

Post by ricturner »

We are currently capturing the IP address for a session using the getenv api from Profound UI during our credit card process. We have been informed by law enforcement that we also need to capture the "source port" (which is the remote port when I issue the netstat command on the ibm i. I reviewed the list of environment variables available put the only port number is that of the instance running on the ibm i. The remote port is available via the NETSTAT command for *CNN.
netstatpic.png
netstatpic.png (22.43 KiB) Viewed 1032 times
Is anyone aware of this value and could it be made available via the environment variables?

This would be a big help.

Thanks,
Ric TUrner
lyarbrough
New User
Posts: 16
Joined: Mon May 08, 2017 11:51 am
First Name: Lillie
Last Name: Yarbrough
Company Name: Profound Logic
Contact:

Re: Remote Port (aka Source Port)

Post by lyarbrough »

Hi Ric,

You should be able to get this value with the REMOTE_PORT environment variable. Is this something that could work for you?

Please let us know if you have any other questions!

--Lillie
ricturner
New User
Posts: 8
Joined: Wed Feb 05, 2014 6:10 pm
First Name: Ric
Last Name: Turner
Company Name: Jano Justice Systems, Inc
Phone: 6013627601
Contact:

Re: Remote Port (aka Source Port)

Post by ricturner »

Thanks Lillie, I'll give it a try.
ricturner
New User
Posts: 8
Joined: Wed Feb 05, 2014 6:10 pm
First Name: Ric
Last Name: Turner
Company Name: Jano Justice Systems, Inc
Phone: 6013627601
Contact:

Re: Remote Port (aka Source Port)

Post by ricturner »

Thanks again Lillie, it worked, but you have to capture it at INZSR time because it appears that Profound wipes it out at some point in my program.

Thanks,
Ric TUrner
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Remote Port (aka Source Port)

Post by Scott Klement »

Ric,

Profound UI copies all of the variables that Apache sends to us into the application job so that you can use them if you like. It does not, at any time, wipe them out.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest