on 12-31-2013 6:07 AM
Hello All,
In WebDynpro in java,i have requirement that to log who accessed a Webdynpro. Since we are using a generic user, we would like to store the User's System IP address of individuals and it should not store any proxy IP or port number.
Any suggestion would be appreciated.
Kind Regards,
Kiran B
Hi Kiran,
Please check following link.
Get IP address for an portal user session | SCN
Thanks,
Patralekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kiran,
Try this code.
// print the IP Address of a Portal
wdComponentAPI.getMessageManager().reportSuccess(""+InetAddress.getByName(PortalURL));
// print all the IP Addresses that are assigned to a certain domain
InetAddress[] inetAddresses = InetAddress.getAllByName("Portal URL");
for (InetAddress ipAddress : inetAddresses) {
wdComponentAPI.getMessageManager().reportSuccess(""+ipAddress);
}
Hope this is help full
Regards
Vijay Kalluri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.