Added functions for determining host's IPs.