Fetching user IP address or locale

We are developing Forge Plugin for Confluence to collect user’s consent. For using Consent API we need to know the user IP or locale. Is there any way to get client IP address or fetch locale in the Forge?
Is it possible to run JS code on the client side for calling third-party resources for getting IP?

@YuriiStarokon I also need to solve this problem. Have you solved it?