1

Topic: IP Ranges

Does anybody know what the IP ranges are for the world I'm working on a project but I can't find information on it.

2

Re: IP Ranges

0.0.0.0 - 255.255.255 I think O.o

Re: IP Ranges

I too tried, and downloaded  one sw, it shows wrong Address. I checked for my country(india) and got it worong as france. Then i got the site, to check the IP for the country... And i'm using this site for checking http://www.selfseo.com/

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: IP Ranges

If it works for you in any way.. you can use this code..

findip.php

<?
function get_ip($url){
$search_string="<br><br><center>The IP address ";
$search_string1="<br><br><center>Sorry, ";

$url=trim($url);
        $fcontents = file ($url);
        
        if(is_array($fcontents)){
            $max=count($fcontents);

            foreach ($fcontents as $k=>$line) {
                    $line=trim($line);
                    if(eregi($search_string,$line) || eregi($search_string1,$line)){
                        $ip=str_replace("</center>","@",$line);
                        $ip=str_replace("<center>","@",$ip);
                        $ip=str_replace("<img src=gfx","<img src=http://www.selfseo.com/gfx",$ip);
                        $tok=strtok($ip,"@");
                        $country_ip=strtok("@");
                        $k=$max;
                    }
            } //End of foreach/while

        } //End of is Array?

    return($country_ip);

}

if($_POST['submit']){
    $url="http://www.selfseo.com/ip_to_country.php?ip=$ip";
    echo "<br><b>URL :</b> $url";
    echo "<br><b>Searching for :</b> $ip<br>";
    $country_ip=get_ip($url);
    echo "$country_ip<br><br>";

}

?>
<html>
<head>
<style>
BODY {font-family:verdana,arial; font-size:10px;font-color:#333333;}
XMP {font-family:verdana,arial; font-size:12px;font-color:#333333;}
A:link   {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#336699;}
A:visited{font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#008800;}
A:active {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#009999;}
A:hover  {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#ff6600;}
.sel {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.inp {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.tin {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.but {background-color:#ffcc99;border-bottom:#cc6600 1px solid;border-left:#cc6600 1px solid;border-right:#cc6600 1px solid;border-top:#cc6600 1px solid;color:#cc6600;font-family:verdana, arial;font-size:11Px;font-weight:bold;width:80px;}

</style>
</head>
<body>
<center>
<FORM name="search" method="post" action="<? echo $PHP_SELF ?>">
Enter IP: <INPUT type="text" name="ip" size=40 value="<? echo $ip; ?>" class="textbox"> 
<INPUT type="submit" name="submit" value="Find Country" class="button">
</form>
</center>
<?
    echo "$list";
?>
</body>
</html>
God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

5

Re: IP Ranges

Thanks ammeenullah. This will aid in my project. smile

Re: IP Ranges

Here is an another link to get more idea about the Country IP... http://www.maxmind.com/app/country

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: IP Ranges

around 77,000 enties you can find it in this file

http://www.maxmind.com/download/geoip/d … tryCSV.zip


This is CSV, Though this is free, please visit the site before you use it for licensing issues....  http://www.maxmind.com/app/geolitecity

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: IP Ranges

There is also hostip.info, although I'm not too sure about it's accuracy beyond the country level.

Looking for a certain modification for your forum? Please take a look here before posting.