Skip to content
No description, website, or topics provided.
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/WebService
logotype
t
.DS_Store
.travis.yml
LICENCE
META6.json
README.md
_config.yml

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. Validates the returned data to ensure there is a valid IPv4 address.

TODO

Methods

  • returnIP()

Returns

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

Example

use WebService::HazIP;
my $ipObj = WebService::HazIP.new;
say "My public IP address is: " ~ $ipObj.returnIP();
You can’t perform that action at this time.