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

Cannot connect to WebSocketServer from app running on same device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.2
    • WebSockets
    • None
    • Android

    Description

      I am pretty sure now this is actually some kind of bug, but not positive.  I asked in other forums if I  might be doing something wrong, but got no answer.  If it is not a bug, and I am just doing something wrong, I apologize but hopefully at least I will find out what to do.

      The issue can be seen most easily with the two examples qmlwebsocketclient and qmlwebsocketserver.   I set the latter to use a specific port, then try to connect to the host and port as specified. 

      If I run the client and server on my desktop computer, it works fine.  

      If I run the server on my android device and the client on my desktop computer, it works fine.  

      If I run the client on my android device and the server on my desktop computer it works fine. 

      BUT, if I run the client and the server on the android device, it does not work.  The client cannot connect to the server.  This is the only one of the four cases that does not work.

      Perhaps I am just doing something wrong, but it doesn't appear so.  The examples, I presume, are meant to work, to handle whatever handshaking or whatever should be necessary to allow client and server to connect.

       

       

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            bensonbear BensonBear
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes