
Dear all, Sorry for bothering all. I have started working in dtn since one week now. I am unable to configure it to create multiple nodes. I tried making different config files and starting them separately in same machine, but only the first one is started. The ones after that says api port not initialized. I changed api_port in config file, but all configs still tries to use port 4550. Here is a sample of the log file:Thu Jun 20 15:52:34 2013 INFO: IBR-DTN daemon 0.8.0 (build 52345)Thu Jun 20 15:52:34 2013 INFO: Local node name: dtn://aayush-pcThu Jun 20 15:52:34 2013 INFO: using bundle storage in memory-only modeThu Jun 20 15:52:34 2013 INFO: DiscoveryAgent: broadcast mode 255.255.255.255:4551Thu Jun 20 15:52:34 2013 INFO: StandByManager: IPNDAgent adoptedThu Jun 20 15:52:34 2013 INFO: Using default routing extensionsThu Jun 20 15:52:34 2013 INFO: Forwarding of bundles enabled.Thu Jun 20 15:52:34 2013 ERROR: Unable to bind to lo:4550. API not initialized! With kind regards,Aayush Rana

Dear Aayush,
I have tested the option in the configuration to set the API to a different port and it should work with options like this:
api_port = 1234
Another port conflict might happen with the discovery module, which also uses the same port in both instances. To disable the discovery, set the option "--nodiscovery" when starting the daemon.
Kind regards, Johannes Morgenroth
Am 20.06.2013 10:53, schrieb Aayush Rana:

Dear Johannes, Thanks so much for the info. I could set up different daemons now, but when I try to ping any with api port other than 4550 it says 'Cannot connect to daemon. Does itrun?' . I have tried to set up static nodes, add link and routes, and also the --nodiscoveryoption, but all give the same error. Here is my config file. Am I doing something wrongin the config file? api_port = 1234console set addr 127.0.0.1console set port 5050set shorthostname [lindex [split [info hostname] .] 0]console set prompt "$shorthostname dtn% "discovery_announce = 0route set type staticroute local_eid "dtn://[info hostname].dtn"interface add tcp0 tcp interface add udp0 udplink add link1 127.0.0.1:5050 ONDEMAND udproute add dtn://aayush-pc/* link1 Thanks for helping in advance. Aayush Rana
participants (2)
-
Aayush Rana
-
Johannes Morgenroth