The easiest thing is to to call an External API which responds back with an IP Address of the caller.
Now i looked around but couldnt find any that is quite clean and useful.
// BEGIN USER CODE const response = await fetch("https://polite-kashata-ea7b05.netlify.app/api/address"); const jsonData = await response.json(); return jsonData.client_ip_addresss; // END USER CODE
Let me know how it went
If you want the client's IP address you can get this using a request handler. There is a module on the App Store called IP Validation. Which checks an IP address on login
And if this doesn’t help you might wanna have a look at this question also,
Hope it helps!!