GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::ADDRESS::IPV4::LOCAL (3)

.ds Aq ’

NAME

Net::Address::IPv4::Local - A class for discovering the local system’s IP address

CONTENTS

VERSION

0.12

SYNOPSIS



    use Net::Address::IPv4::Local;
   
    # Get the local systems IP address that is "connected" to "the internet":
    my $address = Net::Address::IPv4::Local->public;
   
    # Get the local systems IP address that is "connected" to the given remote
    # IP address:
    my $address = Net::Address::IPv4::Local->connected_to($remote_address);



DESCRIPTION

<B>Net::Address::IPv4::LocalB> 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.

    Instance methods

This class just provides the following instance methods:
<B>publicB>: RETURNS SCALAR; THROWS Net::Address::IPv4::Local::Error Returns the textual representation of the local system’s IP address that is connected to the internet.
<B>connected_to($remote_address)B>: RETURNS SCALAR; THROWS Net::Address::IPv4::Local::Error Returns the textual representation of the local system’s IP address that is connected to the given remote IP address.

AVAILABILITY and SUPPORT

The latest version of Net::Address::IPv4::Local is available on CPAN and at <http://www.mehnle.net/software/net-address-ipv4-local>.

Support is usually (but not guaranteed to be) given by the author, Julian Mehnle <julian@mehnle.net>.

AUTHOR and LICENSE

Net::Address::IPv4::Local is Copyright (C) 2005 Julian Mehnle <julian@mehnle.net>.

Net::Address::IPv4::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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::ADDRESS::IPV4::LOCAL (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.