in reply to Getting own ip-addresses on Win32 machines

Of course, your Win32 box may have multiple network cards and IP addresses, so most/all of these answers are only partial solutions.

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"; } }