Connection failed: Connection refused
<?php
/**
 * @file geolocaliser_ip.php
 * @brief Ce script va essayer de géolocaliser une adresse ip.
 *
 * @author hughes monget
 * @see http://monget.com/
 */
define('STR_URL_GET_IP', 'http://prod3.media-projets.com/?ip');
define('STR_URL_GET_LOCATION', 'http://api.hostip.info/get_html.php?ip=');
//$str_ip = file_get_contents(STR_URL_GET_IP);
$str_ip = $_SERVER['REMOTE_ADDR'];
if ($str_ip)
{
    $str_url = STR_URL_GET_LOCATION . $str_ip;
    $str_location = file_get_contents($str_url);
    //echo '<pre>IP: ',$str_ip,'</pre>';
    if ($str_location)
    {
        echo '<pre>',$str_location,'</pre>';
    }
}
echo '<hr />';
highlight_file(__FILE__);