Improve logic to fetch ip from interfaces
Patch node modules with new functions