<?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>Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112252/unable-to-connect-to-the-socket</link><description>I am using nrf7002-dk as client and running the server python code in my PC and I am using ngrok command line tool get alternate http link. 
 I am using wifi-fund lesson4 exercise 1 project: client can connect to the default server &amp;quot;echo.thing.rocks&amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jun 2024 06:20:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112252/unable-to-connect-to-the-socket" /><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/490749?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 06:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4494e6a1-b8ee-4204-afa4-13b161895e27</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, can you share exactly what your host server address is and what the differences between it and&amp;nbsp;the default address from the course sample, as I don&amp;#39;t see your own one specifically.&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><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/490496?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 07:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a9222ce-a9aa-4835-b69c-5fac47509536</guid><dc:creator>Karthik p</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried solution project its working fain but when I change the http address to my host server address than I am getting this.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Karthik&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/490492?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 07:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d744e2a7-c84d-4eeb-8528-1b777c3d5d71</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It seems to me like you might have missed a step somewhere in lesson 5 of the Wi-Fi course, as I can&amp;#39;t see why your http link would respond with this value. Did you follow the steps exactly as described on step 15 of the guide for example? You can also try with the &amp;quot;solution&amp;quot; project that is downloadable as part of the course to see if that works better.&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><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/489848?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 06:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a78ada-0ba0-4152-a148-f19a17353621</guid><dc:creator>Karthik p</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1651.main.c"&gt;devzone.nordicsemi.com/.../1651.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/83257.prj.conf"&gt;devzone.nordicsemi.com/.../83257.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0488.CMakeLists.txt"&gt;devzone.nordicsemi.com/.../0488.CMakeLists.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/489840?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 05:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fbd49e5-94ca-4a43-a30d-4dd5af052d14</guid><dc:creator>Karthik p</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;My web server is locally running but I am tunneling it using ngkor command line tool.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using the same url in the HTTPie I am able to get the output but In nrf it&amp;#39;s not working but if I replays the HOST_NAME from my URL to your default URL = &amp;quot;echo.thingy.rocks&amp;quot;.&lt;/p&gt;
&lt;p&gt;this howl log from UART:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;uart:~$ OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;OK&lt;br /&gt;*** Booting nRF Connect SDK v2.5.2 ***&lt;br /&gt;[00:00:02.119,934] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:02.120,605] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Waiting to connect to Wi-Fi&lt;br /&gt;uart:~$ Received all data: HTTP/1.1 307 Temporary Redirect&lt;br /&gt;Content-Type: text/html; charset=utf-8&lt;br /&gt;Location: &lt;a href="https://still-bug-perfectly.ngrok-free.app/"&gt;still-bug-perfectly.ngrok-free.app/&lt;/a&gt;&lt;br /&gt;Date: Fri, 21 Jun 2024 05:45:07 GMT&lt;br /&gt;Content-Length: 79&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;&lt;a href="https://still-bug-perfectly.ngrok-free.app/"&gt;&amp;quot;&amp;gt;still-bug-perfectly.ngrok-free.app/&amp;quot;&amp;gt;Temporary&lt;/a&gt; Redirect&amp;lt;/a&amp;gt;.&lt;/p&gt;
&lt;p&gt;only data:&amp;lt;a href=&amp;quot;&lt;a href="https://still-bug-perfectly.ngrok-free.app/"&gt;&amp;quot;&amp;gt;still-bug-perfectly.ngrok-free.app/&amp;quot;&amp;gt;Temporary&lt;/a&gt; Redirect&amp;lt;/a&amp;gt;.&lt;/p&gt;
&lt;p&gt;[00:00:07.516,510] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Network connected&lt;br /&gt;[00:00:07.715,332] &amp;lt;inf&amp;gt; Lesson5_Exercise1: IPv4 address of HTTP server found 3.6.98.232&lt;br /&gt;[00:00:07.790,435] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Connected to server&lt;br /&gt;[00:00:07.790,466] &amp;lt;inf&amp;gt; Lesson5_Exercise1: HTTP GET request :&lt;br /&gt;[00:00:07.923,339] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Response status: Temporary Redirect&lt;br /&gt;[00:00:07.923,339] &amp;lt;inf&amp;gt; Lesson5_Exercise1: total length 266&lt;br /&gt;[00:00:07.923,370] &amp;lt;inf&amp;gt; Lesson5_Exercise1: data length 79&lt;br /&gt;[00:00:07.923,370] &amp;lt;inf&amp;gt; Lesson5_Exercise1: more data 1&lt;br /&gt;[00:00:07.957,550] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Closing socket: 9&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/112252/unable-to-connect-to-the-socket/489760"]Does it keep looping to &amp;quot;temporary redirect&amp;quot; [/quote]
&lt;p&gt;yes.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Karthik&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/489760?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 13:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba9520f2-4856-4947-a365-7133294b3d00</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you checked out the lesson5_exer1 solution project file to make sure that you&amp;#39;ve done all the steps correctly, I&amp;#39;m specifically thinking this might be related to step 9 which handles how to define the callback function for printing the body.&lt;/p&gt;
&lt;p&gt;Can you also upload the full log so I can see what happens after these temporary redirected messages? Does it keep looping to &amp;quot;temporary redirect&amp;quot; messages or does it resolve/crash at some point?&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><item><title>RE: Unable to connect to the socket</title><link>https://devzone.nordicsemi.com/thread/489656?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 09:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:740b6aa7-9b5a-4d01-b520-7c85a3642ccb</guid><dc:creator>Karthik p</dc:creator><description>&lt;p&gt;I solved the above issue by changing the PORT number to 80.&lt;/p&gt;
&lt;p&gt;But I am facing new issue where my python client code can connect and get the GET response back&amp;nbsp; from the server but on nrf client I am getting this&amp;gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718875742753v1.png" /&gt;&amp;nbsp;&amp;lt;&amp;lt; nrf client output&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718875850234v2.png" /&gt;&amp;lt;&amp;lt;python code output.&lt;/p&gt;
&lt;p&gt;and also getting a same thing&amp;nbsp; from the HTTPie website&amp;nbsp; &amp;gt;&amp;gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718875967179v3.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Karthik&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>