Hi,
This is actually a bug (of sorts) in IBR-DTN. I ran into the same problem a couple of years ago. After googling, I found this nice description:
https://www.agwa.name/blog/post/beware_the_ipv6_dad_race_condition
As a workaround, I added a few lines of code to base_socket::bind to make it retry the bind after a short sleep if it fails with errno == EADDRNOTAVAIL. I can try to dig up the actual patch if you want, but it was really simple.
Cheers, Ronald
-----Original Message----- From: Ibr-dtn ibr-dtn-bounces@ibr.cs.tu-bs.de On Behalf Of Björn Gernert via Ibr-dtn Sent: maandag 25 november 2019 10:47 To: ibr-dtn@ibr.cs.tu-bs.de Subject: Re: [ibr-dtn] PLEASE HELP> ERROR ApiServer: Cannot bind to socket with address [::1]:4550
Hello Mehrdad,
how did you install IBR-DTN? If IBR-DTN was installed from the repositories, the daemon will start automatically. In this case a dtnd is already running on port 4550, so a second, manually started, dtnd cannot bind to it. You could check this by trying to connect to this port via telnet (or by looking at the output of "netstat -tulpen").
Otherwise you could enable the debug output of dtnd (start with -d 90) to get more information.
- Björn
On 23.11.19 18:41, Mehrdad Asadi via Ibr-dtn wrote:
Hello Dears, I am trying to use IBR-DTN in my thesis and I have following problem:
While trying to use deamon. The error I get is: ERROR ApiServer: Cannot bind to socket with address [::1]:4550
I tried: 1-disabled ipv6 then (ipv4 port listener also gone) 2-change dtndconf bind interface to : 127.0.0.1 3- almost checked all mailing list and FAQ of IBR-DTN.
still nothing... please help me
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.