Page 1 of 1

Remote Port (aka Source Port)

Posted: Tue Jan 23, 2018 12:26 pm
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 1035 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

Re: Remote Port (aka Source Port)

Posted: Tue Jan 23, 2018 1:29 pm
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

Re: Remote Port (aka Source Port)

Posted: Tue Jan 23, 2018 1:38 pm
by ricturner
Thanks Lillie, I'll give it a try.

Re: Remote Port (aka Source Port)

Posted: Tue Jan 23, 2018 5:51 pm
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

Re: Remote Port (aka Source Port)

Posted: Tue Jan 23, 2018 6:52 pm
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.