Dear Experts,
Can u give ur suggesions retriving client ip of the machine who log in portal.
try
{
InetAddress localHost = InetAddress.getLocalHost();
InetAddress[] all_IPs = InetAddress.getAllByName(localHost.getHostName());
for (int w=0; w<all_IPs.length; w++) {
System.out.println("IP address = " + all_IPs[w]);
wdComponentAPI.getMessageManager().reportSuccess(WDClientUser.getLoggedInClientUser().getFirstName());
}
}catch (Exception e) {
// TODO: handle exception
wdComponentAPI.getMessageManager().raiseException("Unable to get IP",false);
}
From above code i'm getting portal server ip.Iwant dynamic client system ip.In ABAP System we're getting IP From AL08 TCODE.But how in webdynpro java.
Thanks ,
Santhosh