WWW::IP - Returns your ip address with failsafe mechanism
version 0.04
use WWW::IP; my $ip = get_ip(); # 54.123.84.6
Exports the get_ip function.
get_ip
Returns your ip address. Will try a number of services in succession should the initial request fail
These modules are used by WWW::IP:
WWW::canihazip - a module that returns your ip address
WWW::ipinfo - a module that returns ip address and geolocation data
WWW::hmaip - another module that returns your ip address
David Farrell <dfarrell@cpan.org>
This software is copyright (c) 2016 by David Farrell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::IP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::IP
CPAN shell
perl -MCPAN -e shell install WWW::IP
For more information on module installation, please visit the detailed CPAN module installation guide.