Alljoyndaemon & chat

asked 2014-07-15 20:52:34 -0700

juige gravatar image

Hi all,

I survey the code and make a few modification on internal config as follows to make sure the daemon can listen on a alternative IP address( on my linux desktop. And then I made the similar change on BusAttachment.c to let the CHAT program to connect to the daemon.

Consequently, the CHAT could not connect to the daemon, only the default settings work. Does anyone knows what's wrong with the problem?

Thanks for sparing your time to answer it!

Change on Internal config

" <listen>unix:abstract=alljoyn</listen>" " <listen>tcp:r4addr=,r4port=5566</listen>"

Change on library used by CHAT

const char* connectArgs = "tcp:addr=,port=5566"


Failed to connect to 'tcp:addr=,port=5566' (ER_BUS_TRANSPORT_NOT_AVAILABLE). Chat exiting with status 0x905d (ER_BUS_TRANSPORT_NOT_AVAILABLE).

edit retag flag offensive close merge delete


Could you update your question to include whether AllJoyn was built with the BundledRouter? In other words, was BR=on or BR=off when you built it with SCons?

stevek ( 2014-07-16 09:33:47 -0700 )edit

Hi stevek, I don't build the code with SCons and I am not sure there is BR option when using make. By the way, the chat program is working fine with alljoyn-daemon when the connectArgs is set to "unix:abstract=alljoyn". I just wonder the alljoyn-daemon can listen on other ip address instead of "unix:abstract=alljoyn"?

juige ( 2014-07-16 19:01:57 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-17 20:17:37 -0700

juige gravatar image

Well, I solve this problem. All devices need alljoyn-daemon to communicate with another.

For example, I have two devices on and I need to run alljoyn-daemon on both two devices. And then start the CHAT program individually to connect to its own alljoyndaemon. The two daemon will share the public channel with each other and the client can choose to join the public channel to chat.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-07-15 20:52:34 -0700

Seen: 287 times

Last updated: Jul 17 '14