No description, website, or topics provided.
Perl6
Latest commit d5934fc Dec 6, 2015 @cbk Update README.md
Permalink
Failed to load latest commit information.
lib/WebService Initial commit Oct 31, 2015
logotype change size of icon Nov 27, 2015
t Add test file Nov 27, 2015
.travis.yml Create .travis.yml Nov 26, 2015
LICENCE Create LICENCE Nov 1, 2015
META.info Update META.info Nov 12, 2015
README.md Update README.md Dec 6, 2015

README.md

perl6-WebService-HazIP Build Status

SYNOPSIS

Simple Internet web service used to obtain the host's current public addressable IP address. Connects to the canihazip.com web site using LWP::Simple and returns the data. Valadates the returned data to ensure there is a valid IPv4 address.

TODO

Methods

  • returnIP()

Retruns

  • Valid IPv4 address if successful.
  • "ERROR! - No Internet connection." on a invalid responce.

Example

use WebService::HazIP;
my $ipObj = WebService::HazIP.new;
say "My public IP address is: " ~ $ipObj.returnIP();