on 09-21-2016 9:20 AM
Hi Folks,
I want to display the IP address and the Host Name of user who open the Portal.
can we use Logon Page war file and then we can change in jsp file?
Thanks & Regards,
Rohit Gera
Hi Rohit,
You want the IP and host name of the enduser who accessing the portal url?
Looking for the client machine details?
In the logon page you are going to use a query to pick a select ipaddr, hostname,in that case you can modify logon page
Regards
Kiruthika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
You can set the Parameter " X-FORWARDED-FOR " in portal web dispatcher ,
Make a portal application and use below code to get the client machine IP address.
Sample code :
String ipAddress = request.getHeader("X-FORWARDED-FOR");
if (ipAddress == null) {
ipAddress = request.getRemoteAddr();
}
Let me know in case of any query.
Regards,
Meghal Shah
Hi Rohit,
X-Forwarded-For: Client-IP, Proxy1-IP, Proxy2-IP
Try to check with different header.
Regards,
Meghal Shah
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.