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"><<a href="mailto:aditya.siram@gmail.com">aditya.siram@gmail.com</a>></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 "localhost" 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 "127.0.0.1" [2] with my network off it works.<br>
<br>
I confirmed that "localhost' resolves to "127.0.0.1" by pinging<br>
"localhost" from command line with the Internet off.<br>
<br>
Is this a bug in "connectTo"?<br>
<br>
-deech<br>
<br>
[1] connectTo "localhost" (PortNumber some_number)<br>
[2] connectTo "127.0.0.1" (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>