in reply to finding ip address without hostname
Looking at the source of Sys::HostIP it appears to parse ifconfig output to obtain the IP address.