<?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>9160DK: http_client sample connect() failed with error 60</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61498/9160dk-http_client-sample-connect-failed-with-error-60</link><description>Hi Support Team 
 I try to run the http_client sample based on ncs1.2.0, and I use the following configs because only NB-Iot available in our location: 
 
 when start running the sample, the terminal prints as: 
 
 I try to find solutions from devzone;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 May 2020 03:37:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61498/9160dk-http_client-sample-connect-failed-with-error-60" /><item><title>RE: 9160DK: http_client sample connect() failed with error 60</title><link>https://devzone.nordicsemi.com/thread/250329?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 03:37:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2866e1f7-dcdd-4e58-9532-01b68cf7d3a0</guid><dc:creator>Smile Jiang</dc:creator><description>&lt;p&gt;Hi Heidi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;I tried the MQTT_Simple sample and made some configurations in prj.conf adapted for NB-Iot network, The MQTT_Simple sample always runs well and no need extra modifications in the code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;About the HTTPS_CLIENT sample, I guess its because I &amp;#39;m in China-mainland and have no access to google.com without VPN.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; So I tried to connect www.bing.com with its cerification, it works well finally. like :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.1.99-ncs1  ***
HTTPS client sample started
Provisioning certificateWaiting for network.. OK
Connecting to bing.com
Sent 62 bytes
Received 810 bytes
&amp;gt; HTTP/1.1 302 Found
Finished, closing socket.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I think I solved the problem.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Smile&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160DK: http_client sample connect() failed with error 60</title><link>https://devzone.nordicsemi.com/thread/250328?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 12:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f28ef4-3d8c-4cc3-ad7e-de09f0c057bc</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;As Håkon states in the ticket you linked to:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The behavior you see is highly likely&amp;nbsp;inherited from the network that you are connecting to.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Have you tested if TCP works at all in your current network?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Did you try mqtt_simple, where you set the IP manually in prj.conf? mqtt.eclipse.org currently resolves to&amp;nbsp;137.135.83.217, so that would be:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CONFIG_MQTT_BROKER_HOSTNAME=&amp;quot;137.135.83.217&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If that fails, try an UDP based sample, like this one (change define NTP_HOST to 129.240.2.6):&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/ntp/src/main.c"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/ntp/src/main.c&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you do this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>