Re: Continuing trouble with localhost ports

Colten Edwards (edwards@panasync.canuck.ca)
Thu, 14 Mar 1996 13:44:14 -0600 (CST)


On Wed, 13 Mar 1996, Snow Cat wrote:

> Colten Edwards once wrote:
> >
> >
> > Just compiled .73 and anxiously rebooted to see if localhost port trouble
> > had been solved. No. Damn. This problem has been here since .59 kernel
> > and someone who knows networking should have a look. (no i am not that
> > person). localhost irc server no-one on the local system can connect
>
> Can you strace ircd and verify that it really binds to INADDR_ANY, not
> just to host's IP address? Other daemons seam to work fine.
>

time(NULL) = 826832477
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
bind(7, {sin_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("192.0.2.1")}, 16) = 0
fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(7, SOL_SOCKET, SO_RCVBUF, [8192], 4) = 0
setsockopt(7, SOL_SOCKET, SO_SNDBUF, [8192], 4) = 0

What's weird about this is that two servers on the same localhost can
connect to one another. It's just the clients that cannot.

Colten Edwards