<?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 not receiving packets after a while</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71057/udp-not-receiving-packets-after-a-while</link><description>Hello 
 I&amp;#39;m having problem with UDP reception. I&amp;#39;m using nrf9160 with modem firmware 1.2.3, nRF Connect SDK v1.4.0, LTE-M. 
 I can receive UDP packets in the device as long as I keep them coming. If I don&amp;#39;t send any packets to the device (nRF9160) from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jan 2021 09:42:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71057/udp-not-receiving-packets-after-a-while" /><item><title>RE: UDP not receiving packets after a while</title><link>https://devzone.nordicsemi.com/thread/291937?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 09:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e78123d-92a1-4039-9393-72c2b697a490</guid><dc:creator>MattiasE</dc:creator><description>&lt;p&gt;Sorry about this, it&amp;#39;s not a bug.&lt;/p&gt;
&lt;p&gt;It was a NAT at our end in the &amp;quot;other&amp;quot; direction. I used connected UDP sockets (I have called connect() on the socket), so datagrams are only received from a specific address. As long as the NAT had a session the packets from my PC got the same source address as the&amp;nbsp;device destination address. But when the session expired the&amp;nbsp;packets from my PC got a generic source address and the device (nRF9160) received them but since I have connected the UDP socket to a specific address the packets was not forwarded to the application.&lt;/p&gt;
&lt;p&gt;Sorry about posting this issue!&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Mattias Eriksson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>