#!/usr/bin/perl # get_wan_ip # This script gets the "external IP address" by extracting it from the HTML # returned from a publicly available web site that provides this service. # # Cameron Hayne (macdev@hayne.net) June 2003 use strict; use warnings; my $url = "http://www.whatismyip.com/"; my $html = `/usr/bin/curl -s -f $url`; if ($html =~ /