From 7ed012e4a5144d18b4b763dae7dad4bb8ab028c2 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Thu, 17 Dec 2015 08:59:08 -0800 Subject: [PATCH] Fixed broadcast --- core/backends/lan/lanlinkprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 35a1d44a3..f58c1cd72 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -114,7 +114,7 @@ void LanLinkProvider::onNetworkChange() NetworkPackage np(""); NetworkPackage::createIdentityPackage(&np); np.set("tcpPort", mTcpPort); - mUdpSocket.writeDatagram(np.serialize(), mTestMode ? QHostAddress::LocalHost : QHostAddress::Any, port); + mUdpSocket.writeDatagram(np.serialize(), mTestMode ? QHostAddress::LocalHost : QHostAddress("255.255.255.255"), port); } //I'm the existing device, a new device is kindly introducing itself.