Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 15:36:22 -0700
From:      Alfred Perlstein <bright@mu.org>
To:        Chris Given <term@velocitus.net>
Cc:        "'freebsd-net@freebsd.org'" <freebsd-net@freebsd.org>
Subject:   Re: Bind to specific address on FreeBSD
Message-ID:  <20020709223622.GJ97638@elvis.mu.org>
In-Reply-To: <B6C2B288BB8D5542AA2485606CD47462125366@exchange.rmci.net>
References:  <B6C2B288BB8D5542AA2485606CD47462125366@exchange.rmci.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Chris Given <term@velocitus.net> [020709 14:50] wrote:
> I can't figure out why this code won't bind to 127.0.0.1 on FreeBSD. I get
> an error "Can't assign requested address".

I don't think you want to htonl the return value from inet_addr, as it
should already be in network order.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020709223622.GJ97638>