<?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>nRF91 as UDP server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120253/nrf91-as-udp-server</link><description>Hi, 
 I&amp;#39;m try to set up a UDP server on a nRF9151dk, and send data from a remote pc to the devkit. I have tested my sim and networking works correctly, I am able to use coap_client on the board to make requests to a coap server. This function is straight</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Mar 2025 11:50:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120253/nrf91-as-udp-server" /><item><title>RE: nRF91 as UDP server</title><link>https://devzone.nordicsemi.com/thread/529494?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 11:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ea2404-ad78-44a5-a207-4e131945cc5c</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;As I explained, there is usually a NAT between the cellular ip-network and the public ip-network.&lt;/p&gt;
&lt;p&gt;Pretty similar to a DSL-internet-router. There it&amp;#39;s also easy to use clients, but if you want to run an server in your home network, then you need &amp;quot;port forwarding&amp;quot; (for cellular that&amp;#39;s not the way).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;You will need either &amp;quot;always traffic&amp;quot; (energy + data volume) or something as a VPN or ip-tunel or whatever spans then a private ip-network between your device and server.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF91 as UDP server</title><link>https://devzone.nordicsemi.com/thread/529487?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 11:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b5fae3-7f12-43e5-9fd3-32e8ef7f4b26</guid><dc:creator>rrna</dc:creator><description>&lt;p&gt;Thanks for your reply. I forgot to mention that my issue is I receive no data on the nrf91 devkit. &lt;br /&gt;&lt;br /&gt;Coap+DTLS where the nrf91 is the client works perfectly fine. I need a web application to be able to initiate some action on the devkit, so I was trying to setup a UDP server on the devkit - here I receive no data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF91 as UDP server</title><link>https://devzone.nordicsemi.com/thread/529374?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2025 19:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5efaf513-8b79-4592-90fa-ef4fe311613b</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="140459" url="~/f/nordic-q-a/120253/nrf91-as-udp-server"]Any ideas what the issue could be?[/quote]
&lt;p&gt;You didn&amp;#39;t mention the issue.&lt;/p&gt;
&lt;p&gt;Using cellular IP is commonly using something as an &amp;quot;IP breakout&amp;quot;, where the cellular IP-traffic is feed into the public IP.&lt;/p&gt;
&lt;p&gt;That comes usually with a NAT (Network Address Translation). It works, if the device initiates the traffic, that allocates an mapping in the NAT and from that on your server may send something back. If no messages are exchanged, the NAT will remove the mapping after an timeout. See my article &lt;a href="https://cloudcoap.net/blog/comparison/"&gt;NAT&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;Therefore you have two options:&lt;/p&gt;
&lt;p&gt;Permanently exchange messages, e.g. every 30s&lt;/p&gt;
&lt;p&gt;Use a &amp;quot;private network&amp;quot;, that may come as VPN or IPsec. In some cases it comes with extra costs at your provider.&lt;/p&gt;
&lt;p&gt;By the way, if you don&amp;#39;t want to keep the device in IDLE (energy consumption), you will need eDRX.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>