Get imp's external IP?

I’m trying to grab the external IP of the local network that the imp is attached to. This would be easy if I could make an http request from the imp. Is there a built-in function to do this, or any other ideas? I have other devices on the same network, and I’d like to pass the address to my mobile app.

Here is the link to the documentation for it:

However, You can’t talk directly to the Imp, only to the Imp’s Agent, so I don’t think you’ll be able to do what you want to. Your mobile app can send requests to the Agent URL, and Imp’s Agents can talk to each other.


There’s no way to get this IP address I’m afraid; we do not expose it to the agent.