Raku Land

WebService::HazIP

github:cbk

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

Returns

Example

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