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

Websocket client can not connect with server by IP adress

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0
    • WebSockets
    • None
    • macOS

      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"

        1. a.png
          533 kB
          Cuong Trinh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes