Add a method to get local ips info.