Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2003 00:33:45 +0530
From:      Gagan Grewal <gagan_grewal@vsnl.net>
To:        freebsd-questions@freebsd.org
Subject:   using bind() call on FreeBSD
Message-ID:  <20030623003345.A2921@vsnl.net>
In-Reply-To: <20030622142321.M67487@rocket.alienwebshop.com>; from Hostmaster@Video2Video.Com on Sun, Jun 22, 2003 at 02:25:45PM -0400
References:  <013a01c33674$8430c200$0eddfea9@perimeter.co.za> <20030621154950.GA39220@webserver.get-linux.org> <026b01c338ea$f9988190$0a00a8c0@apollo> <20030622142321.M67487@rocket.alienwebshop.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Folks :)

I am trying to write a simple a server process which follows this sequence...
  socket()
  bind()
  listen()
  accept()
    .
    .
    .
  close( descriptor from accept() )
  close( descriptor from socket() )

But I am getting error 99 (Cannot assign requested address) from bind().

I am trying to bind the socket on 127.0.0.1:3333
(This works on Linux though)

Are there any special/extra things I need to do in /etc or elsewhere to make
this program run on FreeBSD ?

I am running FreeBSD 4.7-RELEASE

Any help/pointers from you folks would be great :)

Thanks in advance :)

Regards,
Gagan.



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