<?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>Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122898/websockets-over-nb-iot-no-auto-started-network-interface</link><description>Hi, 
 I would like to test a websocket connection over NB-IOT with the nRF9151DK. I started with the websocket_client example but I have those warnings and errors at startup : 
 
 Here is the prj.conf, same as the example but with LTE/NB-IOT feature added</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jul 2025 09:14:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122898/websockets-over-nb-iot-no-auto-started-network-interface" /><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/543450?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 09:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e994756-231b-480d-a779-140c6e2ad5df</guid><dc:creator>Hakon</dc:creator><description>[quote user="MalloryLP"]Don&amp;#39;t know why yet the zephyr sample don&amp;#39;t warks as expected since it is very similar as yours.[/quote]
&lt;p&gt;It is based on the Zephyr sample. But since the Zephyr sample doesn&amp;#39;t run any code to init the modem lib and search, it won&amp;#39;t work out of the box. You need to call&amp;nbsp;nrf_modem_lib_init() and&amp;nbsp;lte_lc_connect() for the modem to function.&lt;/p&gt;
&lt;p&gt;There is also a bunch of kconfig options needed to make the Zephyr TLS stack work with the Nordic security backend.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/543390?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 15:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0702a8e8-1f47-4267-a046-8aebf3933859</guid><dc:creator>MalloryLP</dc:creator><description>&lt;p&gt;Thanks Hakon, your minimal application works on my side too. Don&amp;#39;t know why yet the zephyr sample don&amp;#39;t warks as expected since it is very similar as yours.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/543381?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 14:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79bf2490-1684-4e24-b6ea-400776814b4f</guid><dc:creator>MalloryLP</dc:creator><description>&lt;p&gt;The only modifications are the prj.conf (removed and modified some flags) and change the endpoint.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/543359?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 13:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c10c32d-32e9-4b7c-90c0-97a11607280e</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;If you are still struggling to make this work, you can try this minimal application that I wrote&amp;nbsp;&lt;a href="https://github.com/HakonHL/samples/tree/main/wss_client"&gt;https://github.com/HakonHL/samples/tree/main/wss_client&lt;/a&gt;&amp;nbsp;. Should be built with 2.7.0 and perhaps also --no-sysbuild.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/543146?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 10:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ea6b35-573c-4b26-b158-7cd179648f09</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Can you tell me what modifications you have done to the code? This sample won&amp;#39;t work out of the box since it is a Zephyr networking sample and not a NCS sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/542862?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 12:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078fb3ec-3dc8-4d29-b833-5e2da75206b6</guid><dc:creator>MalloryLP</dc:creator><description>&lt;p&gt;Ok, understood. Here are the logs with your recommandations applied :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.382,507] &amp;lt;err&amp;gt; net_websocket_client_sample: Failed to create IPv4 HTTP socket (-23)
[00:00:00.391,601] &amp;lt;err&amp;gt; net_websocket_client_sample: Cannot create HTTP connection.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/542847?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 10:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793b8c6b-78f0-43cf-b97e-78a7fe116157</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;So here is what you can try;&lt;/p&gt;
&lt;p&gt;Comment out or remove&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# CONFIG_NET_SOCKETS_POLL_MAX=4
# CONFIG_NET_CONFIG_SETTINGS=y
# CONFIG_NET_CONFIG_NEED_IPV4=y
# CONFIG_NET_CONFIG_NEED_IPV6=n
# CONFIG_NET_CONNECTION_MANAGER=y
# CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And add these lines&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_POSIX_API=y&lt;/pre&gt;&lt;/p&gt;
[quote user="MalloryLP"]By adding this to prj.conf, it seems that you are right :&amp;nbsp;[/quote]
&lt;p&gt;Maybe, but with these in your build you can&amp;#39;t use the nrf91 modem lib. And I assume that is what you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/542837?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 08:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9404db78-869a-43cf-b323-fcddd7c3d6d9</guid><dc:creator>MalloryLP</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;By adding this to prj.conf, it seems that you are right :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NET_NATIVE=y
CONFIG_NET_SOCKETS_OFFLOAD=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The logs are differents :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.272,888] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_init: (0x2000d418): Workq started. Thread ID: 0x2000d198
[00:00:00.282,165] &amp;lt;err&amp;gt; net_if: There is no network interface to work with!
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.298,339] &amp;lt;wrn&amp;gt; net_config: No auto-started network interface - network-bound app initialization skipped.
[00:00:00.309,265] &amp;lt;wrn&amp;gt; net_if: No default interface found!
[00:00:00.315,643] &amp;lt;dbg&amp;gt; net_tcp: tcp_conn_ref: (0x2000d418): conn: 0x20013ddc, ref_count: 1
[00:00:00.324,401] &amp;lt;dbg&amp;gt; net_tcp: tcp_conn_alloc: (0x2000d418): conn: 0x20013ddc
[00:00:00.332,550] &amp;lt;dbg&amp;gt; net_sock: zsock_socket_internal: (0x2000d418): socket: ctx=0x2000d828, fd=3
[00:00:00.342,010] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_recv: (0x2000d418): context: 0x2000d828, cb: 0xbabd, user_data: 0
[00:00:00.352,478] &amp;lt;wrn&amp;gt; net_if: No default interface found!
[00:00:00.358,703] &amp;lt;err&amp;gt; net_ctx: Cannot bind to 0.0.0.0
[00:00:00.364,654] &amp;lt;err&amp;gt; net_websocket_client_sample: Cannot connect to IPv4 remote (-125)
[00:00:00.374,206] &amp;lt;dbg&amp;gt; net_http_client: http_flush_data: Data to send
                                          47 45 54 20 2f 72 61 77  20 48 54 54 50 2f 31 2e |GET /raw  HTTP/1.
                                          31 0d 0a 48 6f 73 74 3a  20 33 34 2e 31 39 34 2e |1..Host:  34.194.
                                          31 39 31 2e 32 31 36 0d  0a 4f 72 69 67 69 6e 3a |191.216. .Origin:
                                          20 68 74 74 70 3a 2f 2f  66 6f 6f 62 61 72 0d 0a | http:// foobar..
                                          53 65 63 2d 57 65 62 53  6f 63 6b 65 74 2d 4b 65 |Sec-WebS ocket-Ke
                                          79 3a 20 34 4f 49 2f 75  7a 6a 59 32 46 37 54 4a |y: 4OI/u zjY2F7TJ
                                          5a 46 33 41 31 4d 34 67  67 3d 3d 0d 0a 55 70 67 |ZF3A1M4g g==..Upg
                                          72 61 64 65 3a 20 77 65  62 73 6f 63 6b 65 74 0d |rade: we bsocket.
                                          0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 55 70 67 |.Connect ion: Upg
                                          72 61 64 65 0d 0a 53 65  63 2d 57 65 62 53 6f 63 |rade..Se c-WebSoc
                                          6b 65 74 2d 56 65 72 73  69 6f 6e 3a 20 31 33 0d |ket-Vers ion: 13.
                                          0a 0d 0a                                         |...              
[00:00:00.495,819] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_recv: (0x2000d418): context: 0x2000d828, cb: 0xbabd, user_data: 0
[00:00:00.505,920] &amp;lt;dbg&amp;gt; net_websocket: websocket_connect: (0x2000d418): [0x2000d240] Cannot connect to Websocket host 34.194.191.216
[00:00:00.518,188] &amp;lt;err&amp;gt; net_websocket_client_sample: Cannot connect to 34.194.191.216:443
[00:00:00.527,069] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_recv: (0x2000d418): context: 0x2000d828, cb: 0, user_data: 0
[00:00:00.536,743] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_put: (0x2000d418):  [LISTEN Seq=0 Ack=0]
[00:00:00.544,616] &amp;lt;dbg&amp;gt; net_tcp: net_tcp_put: (0x2000d418): context 0x2000d828 IDLE
[00:00:00.552,703] &amp;lt;dbg&amp;gt; net_tcp: tcp_conn_unref: (0x2000d418): conn: 0x20013ddc, ref_count=1
[00:00:00.561,645] &amp;lt;dbg&amp;gt; net_ctx: net_context_unref: (0x2000d418): Context 0x2000d828 released
[00:00:00.570,556] &amp;lt;err&amp;gt; net_websocket_client_sample: No IPv4 or IPv6 connectivity&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But there is still a network interface problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Mallory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/542730?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 09:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d5ccac-7685-457f-b7af-aba50187880c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;My guess is that it is somehow trying to use the Zephyr network stack instead of the modem library to do socket operations. Unfortunately I have not had time to test this, but I will try to do that soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Websockets over NB-IOT : No auto-started network interface</title><link>https://devzone.nordicsemi.com/thread/542558?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 16:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7b6f17-9089-4c3c-9f4e-7ba13caa29c5</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will have a look at this tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>