Skip to Content
author's profile photo Former Member
Former Member

IP address of end user accessing web dynpro in java application

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 03, 2014 at 11:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 06:39 AM

    Hi Kiran,

    Please check following link.

    Get IP address for an portal user session | SCN

    Thanks,

    Patralekha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.