Here is some code to do it:
$url = 'http://www.lawrencegoetz.com/programs/ipinfo/';
$http = fopen($url, 'r') or die('fopen() failed');
$page = '';
while (!feof($http)) {
$page .= fread($http, 1024);
}
preg_match('/\\b(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})\\b/', $page, $matches);
echo $matches[1];