Turning a string ipAddress into inetaddress
<p>This works fine:</p>

<pre><code>InetAddress addrss=null;
ipAddress = "xx.xxx.xxx.xx"; //ipaddress
addrss  =InetAddress.getByName(ipadress);
sockAddress = new InetSocketAddress(addrss,5002);
</code></pre>

<p>However if I download a txt file from my site with the exact same ipaddress;</p>

<pre><code>addrss  =InetAddress.getByName(ipadress);
</code></pre>

<p><em>Throws an exception java.net.UnknownHostException.</em></p>

<p>This is strange as both strings appear isentical but obviuosly are not?</p>
