Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Having multiple network interfaces it's not possible to decide which one is to use for outgoing QWebSocket connections.
For QTcpSocket there is support for binding sockets, which allows to used to specify which interface to use for an outgoing connection, which is useful in case of multiple network interfaces.
As QWebSocket uses a QTcpSocket internally to make the connection, perhaps adding a
setBindAddress with the same signature as QAbstractSocket::bind() would allow for the use case.
I'm also happy to provide an implementation for that.
There is also an ongoing unresolved topic in the forums for this missing feature: https://forum.qt.io/topic/106328/bind-qwebsocket-qnetworkaccessmanager-to-specific-local-interface-ip
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134732 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
631855,2 | Add support for binding outgoing WebSocket connections | dev | qt/qtwebsockets | Status: NEW | 0 | 0 |