Selam elimde bir kod var fakeip diye yazmış yazan siteye giren kişinin ipini nasıl çekerim bu kodu bana düzeltebilirmisiniz.

<?
function fakeip(){ 
    return long2ip( mt_rand(0, 65537) * mt_rand(0, 65535) );  
}
function Get_File($url) {
    $timeout = 30;
    $cerez = "cookie.txt";
    $useragent = "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0";
    $headers = array(
        'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
        'Cache-Control: private, max-age=0',
        'Connection: keep-alive',
        'Keep-Alive: 115',
        'Accept-Language: en-US;q=0.6,en;q=0.4',
    );
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("REMOTE_ADDR: ".fakeip(),"X-Client-IP: ".fakeip(),"Client-IP: ".fakeip(),"HTTP_X_FORWARDED_FOR: ".fakeip(),"X-Forwarded-For: ".fakeip())); 
    curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
    curl_setopt($ch, CURLOPT_COOKIEJAR, $cerez);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cerez);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    curl_setopt($ch, CURLOPT_AUTOREFERER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 15);
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
}
Yardımcı olacak üstatlarıma şimdiden teşekkürler