Perhaps it was only listening on IPv6 ? ::1 ?<div><br></div><div>- jeremy<br><br><div class="gmail_quote">On Thu, Jun 3, 2010 at 10:30 PM, aditya siram <span dir="ltr">&lt;<a href="mailto:aditya.siram@gmail.com">aditya.siram@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
I had an issue where using the connectTo [1] function would fail to<br>
connect to &quot;localhost&quot; if my wireless card was turned off. The moment<br>
I turned on my wireless connection it worked. But if I use connectTo<br>
with &quot;127.0.0.1&quot; [2] with my network off it works.<br>
<br>
I confirmed that &quot;localhost&#39; resolves to &quot;127.0.0.1&quot; by pinging<br>
&quot;localhost&quot; from command line with the Internet off.<br>
<br>
Is this a bug in &quot;connectTo&quot;?<br>
<br>
-deech<br>
<br>
[1] connectTo &quot;localhost&quot; (PortNumber some_number)<br>
[2] connectTo &quot;127.0.0.1&quot; (PortNumber some_number)<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>