Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131333

qt remote object cannot listen to localhost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • Remote Objects
    • None

    Description

      I tested using https://doc.qt.io/qt-6/qtremoteobjects-simpleswitch-example.html

      with little modification of URL.

      I run the server at a boot2qt device and client on a Windows host.

      server IP is 10.9.98.139

      // if config using the same IP as below, QtRO works
      QRemoteObjectHost srcNode(QUrl(QStringLiteral("tcp://10.9.98.139:1234")));
      QRemoteObjectNode repNode(QUrl(QStringLiteral("tcp://10.9.98.139:1234")));
      
      // if host listen to localhost then client cannot connect to host
      QRemoteObjectHost srcNode(QUrl(QStringLiteral("tcp://127.0.0.1:1234")));
      QRemoteObjectNode repNode(QUrl(QStringLiteral("tcp://10.9.98.139:1234")));

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bstottle Brett Stottlemyer
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes