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

Websocket client can not connect with server by IP adress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.0
    • WebSockets
    • None
    • 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

              manordheim MÃ¥rten Nordheim
              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