<?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>No message received at UDP server for UDP_with_PSM sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53469/no-message-received-at-udp-server-for-udp_with_psm-sample</link><description>Hi, 
 I&amp;#39;m working in NB IoT (AT%XSYSTEMMODE=0,1,0,0), trying to communicate with our private UDP server using the UDP_with_PSM sample. After configuring the main.c file (changed #define HOST &amp;quot;ntp.uio.no&amp;quot; to #define HOST &amp;quot;192.168.2.1&amp;quot; i.e. the IP of our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 09:08:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53469/no-message-received-at-udp-server-for-udp_with_psm-sample" /><item><title>RE: No message received at UDP server for UDP_with_PSM sample</title><link>https://devzone.nordicsemi.com/thread/216315?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 09:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bfa5ff9-e1ff-440d-a7d6-b9dc5f227df0</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Should be a case of port forwarding.&lt;/p&gt;
&lt;p&gt;You will need to find the external IP address of your local network, any &amp;quot;what&amp;#39;s my IP&amp;quot; website can get that for you. Then you will need to go into the router settings and set up a forwarding call to reroute incoming data on the external IP to an internal IP.&lt;/p&gt;
&lt;p&gt;This can be done by setting up a port forwarding call, any incoming data to the external IP with a port number you define (i.e. on port 12345), the router will redirect the incoming data to the internal IP (i.e. your UDP server).&lt;/p&gt;
&lt;p&gt;Once the port forwarding on your router has been set up, you just need to have the device connect to your external IP and the port you specified.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No message received at UDP server for UDP_with_PSM sample</title><link>https://devzone.nordicsemi.com/thread/216310?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 08:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c47ce3c2-49c3-41aa-ae0b-9e282ddcec7f</guid><dc:creator>ShahmeerS</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Are you suggesting that I should set the HOST to a publicly available UDP server and reroute the sent packet back to our private server? If yes, then I honestly don&amp;#39;t know how to accomplish the latter part of the problem. As such, any help or insight would be highly appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Shahmeer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;P.S. Thanks for the link to the article about Class C networks; it was an interesting read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No message received at UDP server for UDP_with_PSM sample</title><link>https://devzone.nordicsemi.com/thread/216295?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 08:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5959865-3199-4254-b8e7-39b3367e7d51</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I don&amp;#39;t know much about routing and IP addresses, but I talked to a colleague and got some insight. I think your problem is that you are using the private IP address (192.168.2.1),&amp;nbsp;which can only be accessed&amp;nbsp;by devices belonging to the same local network. Read&lt;a href="https://helpdeskgeek.com/networking/what-is-192-168-0-1/"&gt; this article&lt;/a&gt; for more insight about Class C networks (ranging from &lt;span&gt;192.168.0.0 – 192.168.255.255&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;The solution is to send the message to the router, and route it from there to the computer hosting the server. I am not sure how this is done, but can look into it if you would like to.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>