<?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>Not able to connect to the server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113168/not-able-to-connect-to-the-server</link><description>I am working on the http server. I wanted to make my device behave as a server so that I can send the data (received through uart) as a response to the client. 
 The problem is I tried to execute the http_server sample code available in which I did some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2024 08:50:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113168/not-able-to-connect-to-the-server" /><item><title>RE: Not able to connect to the server</title><link>https://devzone.nordicsemi.com/thread/495157?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 08:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56fa9a7-be20-440e-a548-3af72620b4ac</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Rakshita,&lt;/p&gt;
&lt;p&gt;It is Charlie here to help since Runar is not available now.&lt;/p&gt;
&lt;p&gt;It is still not clear about your network topology. Is it like the following?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF7002(SoftAP+HTTP Sever)&amp;lt;-----Wi-Fi Connection-----&amp;gt;nRF7002(Station+HTTP Client)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you want to send a command message from&amp;nbsp;HTTP Client then trigger HTTPS server to send a response message every 0.5 second?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Just correct me if I misunderstand your attention.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to connect to the server</title><link>https://devzone.nordicsemi.com/thread/494660?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 20:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba25a77f-c307-453f-936c-b3ebbb2b4bbe</guid><dc:creator>Rakshita</dc:creator><description>&lt;p&gt;Hi Runsiv&lt;br /&gt;&lt;br /&gt;The issue of connecting to the network and getting response from the server is solved.&lt;br /&gt;But have a very different doubt right now&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So actually I integrated the softAP mode and http server so that both the client and server could connect to the module&amp;#39;s network. I was able to successfully connect to it and was also able to get response. But my use case is a bit different. I want to get response continuously (in 1/2 sec) on a single request sent, so for that I created a separate thread to send response periodically but I used to get the below result on rtt viewer&lt;br /&gt;&lt;br /&gt;&lt;span&gt;[00:01:05.305,938] &amp;lt;err&amp;gt; net_sock: invalid access on sock 12 by thread 0x2000d228 [&lt;br /&gt;00:01:05.305,969] &amp;lt;err&amp;gt; softap: send, error: -9 &lt;br /&gt;[00:01:05.305,969] &amp;lt;err&amp;gt; net_sock: invalid access on sock 12 by thread 0x2000d228&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;And on terminal where I executed the client I got&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;curl: (52) Empty reply from server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Most probably I could be wrong in executing the thread.&lt;br /&gt;&lt;br /&gt;Attaching the updated code.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/softap_5F00_while.zip"&gt;devzone.nordicsemi.com/.../softap_5F00_while.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to connect to the server</title><link>https://devzone.nordicsemi.com/thread/494516?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 09:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bb62e09-b262-41dd-b774-01d09bbace8e</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Rakshita&lt;/p&gt;
&lt;p&gt;Just as a start. Before you did any modification to the sample, were you able to connect to the connect to the network? I&amp;#39;m not sure what you mean by&lt;/p&gt;
[quote user=""]but the server was only not able to connect to the ip address of the network on which my device and my laptop were connected[/quote]
&lt;p&gt;as the device should act as server which the other devices on the network should be able to access.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>