[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Couldn't bind socket at the port above 60000
On Sun, 16 Jan 2000, Shenderovich, Uri wrote:
> Hi ,
> We're trying to port existing application ,running on Digital Unix, to
> Linux.
> We've got "address is already in use" when trying to bind at port 61xxx.
>
> Any clue ?
>
> Thanks
>
> BTW The kernel is 2.2.12
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
Yes, there is someone listening already on that port. It is most likely
you! That is, when you exit your program the socket stays open for a
while. Check it by waiting for about five minutes and trying to run your
program again. You need to use setsockopt so the socket is cleared as soon
as the program exit. See Stevens.
Another possibility is that someone else really is using that port. Test
by moving to another port.
Another possiblity is that your program tries to bind more than once.
Review the code.
Regards,
- yba
EE 77 7F 30 4A 64 2E C5 83 5F E7 49 A6 82 29 BA ~. .~ TclTek Ltd.
=}-------------------------------------------------ooO--U--Ooo-----------{=
- benavrhm@tcltek.co.il - tel: +972.52.670.353, http://www.tcltek.co.il -
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il