added lcorelocalips: code to get local v4 and v6 IPs in a central place