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

Thiago Macieira thiago at kde.org
Mon Nov 28 08:28:34 PST 2011

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20111128/5de2e458/attachment-0001.pgp>

More information about the dbus mailing list