GNU bug report logs - #18914
2.0.11 REPL server listens on 127.0.0.1 but not "localhost"

Previous Next

Package: guile;

Reported by: taylanbayirli <at> gmail.com ("Taylan Ulrich Bayırlı/Kammer")

Date: Fri, 31 Oct 2014 15:53:03 UTC

Severity: normal

Fixed in version 2.0.11

Done: Taylan Kammer <taylan.kammer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 18914 <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: taylanbayirli <at> gmail.com (Taylan Ulrich "Bayırlı/Kammer")
Cc: 18914 <at> debbugs.gnu.org, dsmich <at> roadrunner.com
Subject: Re: bug#18914: 2.0.11 REPL server listens on 127.0.0.1 but not
 "localhost"
Date: Tue, 12 Jul 2016 09:17:44 +0200
On Wed 22 Jun 2016 10:32, Andy Wingo <wingo <at> pobox.com> writes:

> Works for me, with Guile 2.0.11 also.  Could it be that "nc" is trying
> to connect to an IPv6 address?

Pretty sure that's what's going on here.  When Guile makes server
sockets, it assumes it should listen on a single family/address/port
triple.  Specifically for INADDR_LOOPBACK that's going to be IPv4
127.0.0.1 and not IPv6 at all.  Probably we should use getaddrinfo if
the user supplies a "host", and use that to plumb through a list of
addresses on which to bind (and/or connect).

Andy




This bug report was last modified 4 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.