Handle errors when parseing IP address from config
Fix warning
Move network info code into utils class