Ipaddress retrievel helper + fix for OSX

OSX needs 0.0.0.0 instead of 255.255.255.255 just like windows

Added a helper to retrieve all info from interfaces in case we detect loopback address (needed for ubuntu and sorts)