Assuming that works for you it could easily be rolled into the EspruinoWiFi library.
I'm not sure why you're not getting a response from .get('http://192.168.0.5:3000' though - did it just happen the once, or does it happen multiple times? Do you see the request appearing on your server at all?
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 just posted a workaround for setting a static IP address here:
https://github.com/espruino/EspruinoDocs/issues/363
Assuming that works for you it could easily be rolled into the EspruinoWiFi library.
I'm not sure why you're not getting a response from
.get('http://192.168.0.5:3000'
though - did it just happen the once, or does it happen multiple times? Do you see the request appearing on your server at all?