fixing getNetworkIp() returning undefined

Thank for the last fork! I've made an important bugfix! :)