Re: [squid-users] What could be the reason? "client: ERROR: Cannot connect to localhost:8080: Connection refused"

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 15 Jul 2003 07:35:26 +0200

On Tuesday 15 July 2003 07.15, Liquid Crystal wrote:

> > > > 2003/07/11 04:52:35| Accepting HTTP connections at x.x.x.x,
> > > > port 8080, FD 8.
> >
> > This is a valuable hint. Your Squid is configured to listen at a
> > specific IP address only. Contacting Squid via localhost won't
> > work in this setup as Squid is not listening on localhost.
>
> Then how can I fix this? what should it be?

If that x.x.x.x is anything else than 0.0.0.0 (which I assume it is as
you replaced it by x.x.x.x) then there can only be two reasons:

a) You are using Squid-2.4 or earlier and have tcp_incoming_address
specified in squid.conf.

b) You are using Squid-2.5 or later and have specified an address to
http_port.

If you are unsure you can verify the address bound to by running
"netstat -an | grep LISTEN | grep :8080"

Regards
Henrik
Received on Mon Jul 14 2003 - 23:35:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:59 MST