Connect to session DBus on different computer
问题 I can run my Qt DBus test by connecting to the session bus: QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerService(...) .... TestserviceInterface testserviceInterface( .... , connection, &a); But can I connect to this DBus from a different computer. I know I can do something like this: connection = QDBusConnection::connectToPeer("tcp:host=127.0.0.1,port=45000", Testservice::ServiceName); But how would I obtain the port? Whatever I have tried, there seems to be