newbie: tcp transport problem

Havoc Pennington hp at
Tue Feb 8 10:03:46 PST 2005

On Wed, 2005-02-09 at 02:20 +0900, Junji Kanemaru wrote:
> I'm working on some client/server kind of apps and want to use
> D-BUS for RPC. I checked mail list log and it is possible to use
> tcp transport by passing "tcp:host=hostname,port=portnumber".
> I did test client and server on same host, it worked fine.
> However when I tested them on remote host client immediately
> failed after calling dbus_message_new_method_call().
> It seemed connection to server was established but method call
> never sent or refused by server for some reason.
> Maybe I need some magic before issuing method call like
> authentication or something like that?
> Oh and I also getting "Using your real home directory for testing,
> set DBUS_TEST_HOMEDIR to avoid" message here.
> I'm not quite sure what this message is meaning...

There's no authentication mechanism that works for separate hosts. You
have to add one in dbus-auth.c

The simplest one to add would be a public "allow everyone" mechanism, if
you are behind a firewall perhaps.


More information about the dbus mailing list