[NBLUG/talk] localhost: connection refused

Christopher Wagner chrisw at pacaids.com
Mon Jul 11 11:22:44 PDT 2005


Yes, but what's the error?

Perhaps try:
route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

Though, I should add that in checking my routing table, I don't have an
entry for loopback:

isadministrator:~# route -v
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.32.0    *               255.255.255.0   U     0      0        0 eth0
default         192.168.32.1    0.0.0.0         UG    0      0        0 eth0
isadministrator:~# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64
time=0.035 ms

--- localhost.localdomain ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.035/0.035/0.035/0.000 ms
--

I submit that your problem may not be in your routing table, but
potentially with a firewall being active (perhaps you might post the
output of 'iptables --list' and 'nmap localhost'?) or that apache is set
to only listen on your IP address (192.168.0.12, I think) rather that on
any interface that the box has.

- Chris Wagner

Todd Cary wrote:

> Augie -
>
> When I do "ps -ax | grep httpd", I get 9 processes running.
>
> The route table does not seem to be correct: there is not an entry for
"lo". Here are the results from the box in question nd the results from
a working box:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> Currently working table has this:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> But "route add -net 127.0.0.0" (as the man page suggests) produces an
error.
>
> Suggestions?
>
> Todd
>
> Augie Schwer wrote:
>

> On 7/8/05, Todd Cary <todd at aristesoftware.com> wrote:
>  
>
> >Just installed FC3 and the network is up as well as smb. I am
> >overlooking something simple since "localhost" connection is refused
> >e.g. http://localhost in the browser.
>
>
>
> You are making an HTTP request to your localhost; are you actually
> running an HTTP server on your localhost?
>
> Augie.
>
>

_______________________________________________
talk mailing list
talk at nblug.org
http://nblug.org/cgi-bin/mailman/listinfo/talk


 


>-------------------------

>_______________________________________________
>talk mailing list
>talk at nblug.org
>http://nblug.org/cgi-bin/mailman/listinfo/talk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: chrisw.vcf
Type: text/x-vcard
Size: 181 bytes
Desc: not available
Url : http://nblug.org/pipermail/talk/attachments/20050711/7054ed82/chrisw-0001.vcf


More information about the talk mailing list