[dbus]How to verify the capability of dbus IPC between machines

yinxb yinxiaobiao at gmail.com
Mon Nov 28 18:38:08 PST 2011

Hi  Thiago Macieira and Pavel

     Thanks for your reply.

     As metioned in your mail,I did the following steps:
1.Romote PC:
   Config /etc/dbus-1/system.conf.
   Add listen tcp:host=,port=12434

2.Local PC:
   dbus-send --address=tcp:host=xx.xxx.xx.116,port=12434 --print-reply

after that,I got the following message:
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply.
Possible causes include: the remote application did not send a reply,
the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.

Can you figure out what is missing or wrong with my steps?

telnet can connect the remote PC (xx.xxx.xx.116).

2011/11/29 Thiago Macieira <thiago at kde.org>:
> On Monday, 28 de November de 2011 15.59.42, 尹YinXiaobiao wrote:
>> Hi all
>>      I am a newbie at Dbus and this is my first mail in this maillist.
>>     By some investigate and look at the source code,I know that dbus
>> is using socket(tcp & unix domain socket) to transfer data.
>>     So it is possible for communication between two machines(or VM).
> Right, it's possible.
>>     Now my question is how to vevify this capability by dbus-send command.
>>     Can anyone give me  a hint?
> Just send the message you want to send. You know the address of the bus server
> to connect to, so pass it in the --address= option. You know that address
> because you configured the other machine with it.
>> Someone tell me that dbus do not listen on TCP by default,how to
>> enable TCP listen?
> Create your own config file and change the <listen> directive to be on TCP.
> Remember: D-Bus TCP is unauthenticated an unencrypted. It accepts connections
> from anywhere and trusts it blindly.
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Software Architect - Intel Open Source Technology Center
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus

More information about the dbus mailing list