Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can not connect using websockets example.



  • I'm having trouble with QWebSocket. I am using the client/server websockets example in Qt 5.6 straight out of the box. When I run the server it listens on port 1234 but the client fails to connect. I'm not using the SSL example but the non-SSL case. Below is the output of the client.

    I added a statement to print the error property. I think the qt.network.ssl messages are warnings. (I'm not using ssl, i don't know why it's complaining about that)

    qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
    Socket Closed: "Connection refused"

    If anyone has some insight to this I'd love to get some pointers. I have checked other messages about this but haven't found anything that solves my problem yet.

    Thanks, Michael


Log in to reply