We are trying to implement IP based access in one of the custom plugins that we developed. The issue is that since confluence is hosted on Azure, it only gets to see the public IP of the company network instead of the actual client IP.
I was wondering if there is a way to retrieve the actual client IP from the request object in confluence that can be accessed by custom plugin? Or if there is any approach that can be followed to retrieve this info from within confluence.
All I need is to pass this information to the custom plugin that can perform the access verification based on client IP. Any example will be of great help.
Welcome to the Atlassian Community!
There is not usually any way to do this, the request will not contain the originating IP address, and it's often useless data anyway.
There are three reasons -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.