tfoertsch has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to get all IP addresses (v4 and v6) that point to the local machine?

For IPv4 there is IO::Interface::Simple. Is there anything similar for IPv6?

My problem is I have a list of addresses possibly including "0.0.0.0" or "::" and want to

1) check if the address matches the local machine and
2) expand INADDR_ANY or IN6ADDR_ANY to all local addresses

Thanks,
Torsten

  • Comment on How to fetch all local IPv4 and IPv6 addresses

Replies are listed 'Best First'.
Re: How to fetch all local IPv4 and IPv6 addresses
by stonecolddevin (Parson) on Sep 08, 2008 at 21:33 UTC