inet_pton does not work on local ip addresses like 10.0.1.4
<pre><code>&lt;?php
//$ipaddress = $_SERVER['REMOTE_ADDR'];
$ipaddress = '10.0.1.4';
$binip = inet_pton($ipaddress);
echo $binip;
?&gt;
</code></pre>

<p>It returns blank. If i use my public facing IP it returns the right result. It will return a result for <code>192.168.1.2</code>(My old LinkSys router had a ip similar to this). I'm testing my app on a Linux machine i have with a local ip. All Machines that connect to it uses a internal ip <code>10.0.1.XX</code>. My app uses MySQL and if the binip is blank, it gives me a error. So i am not sure of a work around for local ip. I was thinking maybe it has to do with detecting if its a local ip in that format and then edit the ipaddress variable so its valid for inet_pton some how. Any ideas?</p>
