I am trying to get the public ip in my esp8266 so I can send it to my remote server(http://xxxxx.com) so I can access my espruino server later remotely. Is there an api to get the public ip? I tried to use wifi.getIP() but it returns the local ip (192.168.x.x) only which is not what I needed.
I also tried the Ethernet.getIP() but it keep saying Ethernet is not defined. Not sure why. am I doing something wrong on using it?
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.
I am trying to get the public ip in my esp8266 so I can send it to my remote server(http://xxxxx.com) so I can access my espruino server later remotely. Is there an api to get the public ip? I tried to use wifi.getIP() but it returns the local ip (192.168.x.x) only which is not what I needed.
I also tried the Ethernet.getIP() but it keep saying Ethernet is not defined. Not sure why. am I doing something wrong on using it?
Please help thanks.