I want to fetch the IP address of clients who raise an issue in JIRA

I am new to plugin development. hence, I have no idea how I can add a method which can fetch the IP addresses of my clients raising issues. I am thinking of using getremoteAddr() method but don’t know how to integrate it with JIRA. Any suggestion could be helpful.

ExecutingHttpRequest has a static #get method. However if the application is behind a reverse proxy or load balancer (which is common) then it’s likely that the system will need to have implemented a customization such as this:
https://confluence.atlassian.com/jirakb/how-to-log-the-client-source-ip-in-access-logs-for-jira-data-center-978196913.html

1 Like

I have used JiraUserSession to fetch the IP address of my client. However, the IP address received does not matches with the public IP of the client.
Why?