<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>udp_bind() cannot receive broadcast.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112987/udp_bind-cannot-receive-broadcast</link><description>Hello, 
 I am implementing firmware to communicate using UDP between two nRF7002. 
 The sender does not know the IP address, so it tries to know the IP address of the receiver using broadcast. But udp_bind() ignores the broadcast for some reason. 
 It</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 00:19:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112987/udp_bind-cannot-receive-broadcast" /><item><title>RE: udp_bind() cannot receive broadcast.</title><link>https://devzone.nordicsemi.com/thread/494442?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 00:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c0cd2e9-ad72-4414-9599-49de2ed26524</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;gt; bind() to ANY address instead (0.0.0.0), that should make the socket receive all packets for the port which get through the IP layer,&lt;/p&gt;
&lt;p&gt;Thank you for info. I can receive a broadcast packet using udp_bind() with (0, 0, 0, 0).&lt;br /&gt;And&amp;nbsp;I&amp;nbsp;look forward to the implementation of broadcast reception.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Yoshihiro Goto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: udp_bind() cannot receive broadcast.</title><link>https://devzone.nordicsemi.com/thread/493909?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 13:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeb813c2-1b2b-4a10-9071-78a203c646e1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The team said that binding to a broadcast address has not been&amp;nbsp;implemented. There are a few alternatives though:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;bind() to ANY address instead (0.0.0.0), that should make the socket receive all packets for the port which get through the IP layer,&lt;/li&gt;
&lt;li&gt;stick to multicast addressing instead, that&amp;#39;s utilized by multiple network services in the system already (IGMP, mDNS etc.)&lt;/li&gt;
&lt;li&gt;or just use a protocol which was designed for the job. I suggest the customer to get familiar with mDNS and DNS Service Discovery and Zephyr&amp;#39;s implementation of those, which were designed exactly for that purpose (obtaining IP address of a host based on a service name)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: udp_bind() cannot receive broadcast.</title><link>https://devzone.nordicsemi.com/thread/493713?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 19:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f76b04af-96b2-4b48-85cb-7d978bb493db</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me check with the team and then back to you next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>