Connecting to dbus over tcp

后端 未结 3 1036
故里飘歌
故里飘歌 2020-12-07 18:05

I wrote a simple python program to play and pause banshee music player. While its working on my own machine, I have trouble doing it to a remote computer, connected to the s

3条回答
  •  醉梦人生
    2020-12-07 18:39

    Another thanks @Shorin, and another FYI - I had to do something like this to make mine work:

    tcp:host=localhost,bind=0.0.0.0,port=55884
    

    Note the bind=0.0.0.0 - the bind=* didn't work for me, and I left out the family=ipv4 part. I'm on Ubuntu 12.04. I did use netstat on the remote machine to confirm dbus was listening on the port and telnet from local to confirm the port was open.

    netstat -plntu | grep 55884
    
    tcp   0     0 0.0.0.0:55884    0.0.0.0:*     LISTEN    707/dbus-daemon
    

    You have to see something like 0 0.0.0.0:55884 and not something like 0 127.0.0.1:55884.

提交回复
热议问题