From owner-freebsd-questions Thu Apr 8 12:47:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 679EA150F4 for ; Thu, 8 Apr 1999 12:47:30 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id MAA04071; Thu, 8 Apr 1999 12:45:17 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Thu, 8 Apr 1999 12:45:16 -0700 (PDT) From: Doug White To: Phil Wang Cc: "Paul T. Root" , Questions FreeBSD Subject: Re: Why not bind socket with an address under BSD? In-Reply-To: <370D046E.546E87C@wizeup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hm, if you send mail to me and questions, my mailfilter sticks both copies in -questions. Good thng I'm back to reading -questions :-) On Thu, 8 Apr 1999, Phil Wang wrote: > My FreeBSD 2.2.5 gateway has not worked well since last Friday, which > bridges an intrane to Internet. Network communications of internal > machines accessing Internet are good through this gateway's NATD, but > that of the gateway and internal machinese are extremely slow at the > begin of their connections such as telnet, ftp and http. > > When I tested the gateway machine with a self-coded network program, I > found that it could not bind its socket with a local address > (192.168.1.1:2323). The error message is below. > > su-2.01# inet_svr 2323 > inet_svr: addr=101a8c0 sin_port=4873 > bind(): errno=49 Can't assign requested address > binding: Can't assign requested address > > Does this binding error cause a slow network communication between BSD > gateway and internal machines? How to solve it? Slow connections tend to point to broken reverse DNS resolution. Most daemons will reverse-lookup your IP address on connection, and if that info is bad or unavailable, it will time out and slow things down. For your bind problem, perhaps something is already running on port 2323? Check netstat. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message