Net::Address::IP::Local(3pm) | User Contributed Perl Documentation | Net::Address::IP::Local(3pm) |
Net::Address::IP::Local - A class for discovering the local system's IP address
0.1.2
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; my $address_ipv4 = Net::Address::IP::Local->public_ipv4; my $address_ipv6 = Net::Address::IP::Local->public_ipv6; # Get the local system's IP address that is "en route" to the given remote # IP address: my $address = Net::Address::IP::Local->connected_to($remote_address);
Net::Address::IP::Local discovers the local system's IP address that would be used as the source address when contacting "the internet" or a certain specified remote IP address.
This class just provides the following class methods:
The latest version of Net::Address::IP::Local is available on CPAN and at <http://www.mehnle.net/software/net-address-ip-local-perl>.
Support is usually (but not guaranteed to be) given by the author, Julian Mehnle <julian@mehnle.net>.
Net::Address::IP::Local is Copyright (C) 2005-2009 Julian Mehnle <julian@mehnle.net>.
Net::Address::IP::Local is free software. You may use, modify, and distribute it under the same terms as Perl itself, i.e. under the GNU GPL or the Artistic License.
2015-06-06 | perl v5.20.2 |