Getting user's IP address in an app

I assume there’s no way to consume an external API in the client? I can put the URL to a server endpoint in a link but I’d need a way to “click” it and absorb the result.

I think I’m probably barking up a dead tree …