<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QUdpSocket broadcast messages with more ip address]]></title><description><![CDATA[<p dir="auto">Hi Guys!<br />
In my company we want to receive and send broadcast messages. But we were faced with very strange phenomena (we used the QT example broadcastreciever and sender). If someone has more IP addresses (for virtualmachine etc...) then they didnt get any messages but if some has just one ip address then he could send messages to everyone  and recieve from everyone. If we set QHostAddress::Broadcast to 10.0.10.255 (this is our IP range) then everything is working correctly for everyone.<br />
So the question is how does it work?  And how we can use the udpsocket broadcast messages in a right way?<br />
Thanks your help!</p>
]]></description><link>https://forum.qt.io/topic/133832/qudpsocket-broadcast-messages-with-more-ip-address</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 04:21:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/133832.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jan 2022 15:22:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QUdpSocket broadcast messages with more ip address on Tue, 25 Jan 2022 19:47:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaguro">@<bdi>Kaguro</bdi></a> said in <a href="/post/700100">QUdpSocket broadcast messages with more ip address</a>:</p>
<blockquote>
<p dir="auto">If someone has more IP addresses (for virtualmachine etc...) then they didnt get any messages but if some has just one ip address then he could send messages to everyone  and recieve from everyone. If we set QHostAddress::Broadcast to 10.0.10.255 (this is our IP range) then everything is working correctly for everyone.</p>
</blockquote>
<p dir="auto">Sounds like you didn't bind to the correct address on the receiver side.</p>
<blockquote>
<p dir="auto">So the question is how does it work?</p>
</blockquote>
<p dir="auto">Well, you could use a multicast group with UDP, to mix and match the different interfaces you have defined.</p>
]]></description><link>https://forum.qt.io/post/700135</link><guid isPermaLink="true">https://forum.qt.io/post/700135</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Tue, 25 Jan 2022 19:47:35 GMT</pubDate></item></channel></rss>