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

How do I bind a QUdpSocket to a random port on a specific interface?



  • I can call bind() with no parameters to specify a random port.

    I can call bind(QHostAddress,quint16) to specify an interface and a port.

    How do I bind to a random port on a specific interface?


Log in to reply