in reply to Finding the IP of a local box

I've used Net::Interface to do this.