Try the following (site) to obtain your external IP address:
chomp (my $ip = get('http://icanhazip.com')); [download]
In reply to Re: Getting external IP by Kenosis in thread Getting external IP by vwyoda