From owner-freebsd-questions@FreeBSD.ORG Sat May 3 11:22:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DAF91065673 for ; Sat, 3 May 2008 11:22:14 +0000 (UTC) (envelope-from kasthurirangan.balaji@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id 532398FC18 for ; Sat, 3 May 2008 11:22:14 +0000 (UTC) (envelope-from kasthurirangan.balaji@gmail.com) Received: by wf-out-1314.google.com with SMTP id 28so77709wfa.7 for ; Sat, 03 May 2008 04:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=llLiLgbVbvSX91gaDzVvhTy24cv2S/SUX15YaFx9VHU=; b=JgC36BepyJ0rV4Tx+gCkig3TKJkaBhNqUcVb7vA7hEVSQRZ6/M+4CAwH/VZXxCGBPkSQdRxvkFNTDexUOqDVRJR2y1fLD7ZP91LQnFViF/oomdkRNYb+LBISbRTiMIYbAnaQI1cS4gTvioIWeo9W81Lwid7sGKoW5zOX/CBIrds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=UrQJ6hDsdalAVhRbqrQeAwuWnd5Hq9xDa+mBVVccW89SXlVS2DZZmW2qe5at39nXnWbfuntHxVvbcL6u9Ri7gWtPgKhknLOhG4lfmBB8stW4QVuKvEiinRpER/+lJPUy927dHGxzbFc+pPokEexE7IybtMJaiyLNSHAjCzxS0uc= Received: by 10.142.211.1 with SMTP id j1mr1640334wfg.109.1209810083192; Sat, 03 May 2008 03:21:23 -0700 (PDT) Received: by 10.142.169.14 with HTTP; Sat, 3 May 2008 03:21:23 -0700 (PDT) Message-ID: <92db61c20805030321x7b943088x6bc79933e4e3bd7d@mail.gmail.com> Date: Sat, 3 May 2008 05:21:23 -0500 From: "Balaji Kasthurirangan" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: socket bind failure - errno 49 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2008 11:22:14 -0000 Hi, I have tried searching the archives and in vain. Hence i am posting to this group. If this not the right one, pls direct me. I am using FreeBSD 6.1. Initially i was able to create socket, bind it and do all sorts of things. But when i tried now, it isn't working. I am trying after a long gap. The errno is 49 - invalid address. I used gethostbyname and it returns whatever is there in /etc/hosts. I have checked the /etc/resolv.conf. My config details are /etc/rc.conf hostname="Balaji" /etc/hosts 192.168.1.1 Balaji 127.0.0.1 localhost ::1 localhost /etc/resolv.conf nameserver 192.168.1.1 I tried setting Balaji to 0.0.0.0, still it doesn't work. Pls help me. Also, when my system boots, couple of eye-catchy messages syslogd: can't bind address sm_mta[root]:syserror : can't assign address // i hope this is wrt mail/smtp My suspect is that, the error happens after my system was shutdown improperly(sudden power off and my laptop battery isn't working, and ofcourse i am freebsd on my toshiba tera laptop - P4). I have done fdisk to ensure my disk is clean. Thanks, Balaji.