6 lines
177 B
Perl
6 lines
177 B
Perl
|
use Net::Address::IP::Local;
|
||
|
|
||
|
# Get the local system's IP address that is "en route" to "the internet":
|
||
|
my $address = Net::Address::IP::Local->public;
|
||
|
print("$address\n");
|