I would like to recommend the Win32::IPHelper module:
use strict; use Win32::IPHelper; my @Adapters; Win32::IPHelper::GetAdaptersInfo(\@Adapters); foreach my $Adapter (@Adapters) { foreach my $IP (@{$Adapter->{IpAddressList}}) { print "IP = $IP->{IpAddress}\n"; } }
In reply to Re: Getting own ip-addresses on Win32 machines
by meetraz
in thread Getting own ip-addresses on Win32 machines
by esskar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |