Plex 2E

  • 1.  Getting User IP Address from Citrix and passing to iSeries

    Posted Sep 18, 2017 10:47 AM

    We have a requirement to correctly pass the users IP address rather that the address of the Citrix server when connecting to the iSeries.

     

    There is a way to identify the correct IP address on the Client but I was wondering how to force the connection to carry this information rather than the "default" server IP.

     

    Has anyone done this?

     

    David.



  • 2.  Re: Getting User IP Address from Citrix and passing to iSeries

    Posted Sep 19, 2017 10:18 AM

    Should have mentioned we are using C#/RPGLE



  • 3.  Re: Getting User IP Address from Citrix and passing to iSeries

    Broadcom Employee
    Posted Oct 12, 2017 12:32 AM

    Hi David, 

     

    We are keeping the suggested workaround/solution here to help others in this regards.

     

    We would like to suggest the following approach to achieve the desired results as discussed above: 

    1. Write one RPG function (e.g. LogCitrixTrueClientIPAddress) having one input parameter for Citrix Client IP address. 
    i) Write one Message object (e.g. LogIPAddress) with one input parameter for Citrix Client IP address. This should dump the parameter value as part of the message text. 
    ii) Call this Message object (e.g. LogIPAddress) from RPG function (e.g. LogCitrixTrueClientIPAddress) with Dialog Message type - passing the IP address as input parameter. 
    2. Call the RPG function (e.g. LogCitrixTrueClientIPAddress) at the startup of main application before making a call to any System-I server function. 
    So, the Message Object text (including Citrix Client IP address) will be written into Job Log and then spool file - which can be used for auditing purposes. 

     

    Seems couple of ways to get Citrix Client IP address, one of them would be here - https://stackoverflow.com/questions/2450857/is-there-a-way-to-retrieve-the-computer-name-of-a-xenapp-client. 

     

    Aforementioned workaround/solution should help in this regards with minimal efforts.

     

    Thank you. 

     

    Regards, 
    Arun Painuly 
    CA Technologies