The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Collector::Info::ExternalIP - Fetch machine's external IP information

This info module fetches the external IP of a machine using the DynDNS URL http://checkip.dyndns.org.

This is good in two situations:

  • When you're trying to determine an external IP inside a network

  • When you have multiple IPs and want to find the main one

    (something that happens quite often on hosting servers)

The key this module takes in the registry is external_ip.

ATTRIBUTES

url(Str)

The URL used to fetch the IP. As stated above, it is now http://checkip.dyndns.org.

SUBROUTINES/METHODS

info_keys

Subclassing info_keys from Data::Collector::Info to indicate which keys to register.

all

Returns a hashref with the key and the request result.

AUTHOR

Sawyer X, <xsawyerx at cpan.org>