You would need to involve an external server that sees what IP is sending the request and echos it back - the devices behind a router do not know what their external IP address is (be they computers, embedded devices, or whatever).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You would need to involve an external server that sees what IP is sending the request and echos it back - the devices behind a router do not know what their external IP address is (be they computers, embedded devices, or whatever).