in reply to Getting net addy on localhost?

If you're on *NIX, have a look at IO::Interface.

conv