diff --git a/libraries/networking/src/udt/Socket.cpp b/libraries/networking/src/udt/Socket.cpp index 9871935853..7fd697a674 100644 --- a/libraries/networking/src/udt/Socket.cpp +++ b/libraries/networking/src/udt/Socket.cpp @@ -76,6 +76,10 @@ void Socket::rebind() { void Socket::rebind(quint16 localPort) { _udpSocket.close(); +#ifdef WIN32 + WSAData ws; + WSAStartup(MAKEWORD(2, 2), &ws); +#endif bind(QHostAddress::AnyIPv4, localPort); }