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(127.0.0.1:5566) 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=127.0.0.1,r4port=5566</listen>"
Change on library used by CHAT
const char* connectArgs = "tcp:addr=127.0.0.1,port=5566"
Failed to connect to 'tcp:addr=127.0.0.1,port=5566' (ER_BUS_TRANSPORT_NOT_AVAILABLE). Chat exiting with status 0x905d (ER_BUS_TRANSPORT_NOT_AVAILABLE).