Obtaining client IP Address through ALUI Portal Gateway
-
10-07-2019 - |
Question
Currently using Oracle/BEA/Plumtree ALUI Portal 6.1, and am trying to display a client's IP Address. Problem is that since this content is being gatewayed, the portal server's address is coming up when I call
<%= request.getRemoteAddr() %> (<%= request.getRemoteHost() %>)
I am pretty much doing the java equivalent of this link, and it's not working correctly. Uncertain if there is something somewhere in the IDK, or if there's a configuration setting that needs to change.
Solution
Turns out this is doable using PEIs (Plumtree Event Interfaces). This is a two part process:
- First create a PEI that stores the Client IP Address in the Portal Session. To do this, here is a reference: http://edocs.beasys.com/alui/devdoc/docs5x/Customizing_the_Portal_UI/Using_PEIs/PlumtreeDevDoc_Customizing_PEI_Step2Implement.htm
- Refer to the Portal Session to get the Client IP Address.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow