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

Websocket client can not connect with server by IP adress

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: WebSockets
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      In my project, I already config use self signed certificate and also add trust for a custom root ca.
      in server's certificate, I registered IP "127.0.0.1" and "localhost" in the field "subjectAltName".
      when I test with project on go. client can connect with server by 2 link "wss://127.0.0.1:6868" and "wss://localhost:6868"
      But when test with project base on qt websocket, client can not connect with server by link "wss://127.0.0.1:6868". It show error: "The host name did not match any of the valid hosts for this certificate".
      client base on qt can connect with server by link "wss://localhost:6868"

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              manordheim MÃ¥rten Nordheim
              Reporter:
              nguoithichkhampha Cuong Trinh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes