From owner-freebsd-questions Wed Mar 19 0:33:10 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23CC937B401 for ; Wed, 19 Mar 2003 00:33:09 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2C3F43F93 for ; Wed, 19 Mar 2003 00:33:06 -0800 (PST) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id 608C419BD2; Wed, 19 Mar 2003 10:32:55 +0200 (EET) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 1089419B36; Wed, 19 Mar 2003 10:32:49 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h2J8bQc87562; Wed, 19 Mar 2003 10:37:26 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (localhost [127.0.0.1]) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6) with ESMTP id h2J8Vo1D006342; Wed, 19 Mar 2003 10:31:50 +0200 (EET) (envelope-from simon@pm514-9.comsys.ntu-kpi.kiev.ua) Received: (from simon@localhost) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6/Submit) id h2J8Voil006341; Wed, 19 Mar 2003 10:31:50 +0200 (EET) Date: Wed, 19 Mar 2003 10:31:50 +0200 (EET) Message-Id: <200303190831.h2J8Voil006341@pm514-9.comsys.ntu-kpi.kiev.ua> From: Andrey Simonenko To: "Ian Larsen" Cc: questions@freebsd.org Subject: Re: Problem with apache In-Reply-To: X-Newsgroups: lucky.freebsd.questions User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386)) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 19 Mar 2003 06:35:12 +0000 (UTC) in lucky.freebsd.questions, Ian Larsen wrote: > I've got two FreeBSD boxes on my home network. They are both assigned local > IP addresses through DHCP. > > I've just installed Apache on both of them tonight, and I can access one > machine just fine using its local IP address. (192.168....) The other, I > can telnet to port 80 on it using: > > $ telnet localhost 80 > Trying ::1.. > Connected to localhost. > Escape character is '^]' > > But if I try using its IP address, even the loopback, the connection is > refused: > > $ telnet 127.0.0.1 80 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refused > telnet: unable to connect to remote host > Following checks should help: 1. Check on which interfaces your Apache server works: "sockstat -l". 2. Check NICs IP addresses: "ifconfig -a" 3. Check routing table: "netstat -rn" 4. Check IPFW "ipfw l" (and/or IPF "ipfstat -io") tables. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message