I have a fix for you to try out.
Edit file hyper/server/webserver.js
Find the function GetIpAddresses, and edit it to return an empty array. You can comment out the code in the function and add the line: return []
Like this:
Code: Select all
function GetIpAddresses()
{
/*
var interfaces = OS.networkInterfaces()
var addresses = []
for (var interfaceName in interfaces)
{
for (var i in interfaces[interfaceName])
{
var address = interfaces[interfaceName][i]
if (address.family == 'IPv4' && !address.internal)
{
addresses.push(address.address)
}
}
}
return addresses
*/
return []
}
This will prevent OS.networkInterfaces() from being called, and should prevent the crash.
The IP-address displayed will be 127.0.0.1. You can still scan for the Workbench and connect using Evothings Client.
If you need to connect using the IP-address you can find it by opening a command window and enter the command: ipconfig
This will display the IP address of your network adapter.
It is difficult to detect in node.js if the OS is Windows XP. Looked for methods but found no reliable way. Hope this manual code patch can work for you for the time being.
Let me know how it works!
Mikael