cancel
Showing results for 
Search instead for 
Did you mean: 

IP address of end user accessing web dynpro in java application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kiran,

Please check following link.

Get IP address for an portal user session | SCN

Thanks,

Patralekha

vijay_kumar49
Active Contributor
0 Kudos

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