Seems to work reliably now and to always report the right host address, however there are still sometimes missed bytes from the end of UDP packets - but at least you can filter that out.
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.
Ok, builds from http://www.espruino.com/binaries/travis/master/ should now have the fix in.
Seems to work reliably now and to always report the right host address, however there are still sometimes missed bytes from the end of UDP packets - but at least you can filter that out.