<?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>TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126529/tcp-ipv6-connection-fails-with-zephyr-bsd-sockets-errno-116-on-nrf54l15-thread-cli-while-openthread-tcp-works</link><description>I am working with nRF54L15 running Thread CLI . The device is successfully commissioned to a Thread network and communicates through a Border Router (BR) . SDK version V3.1.0 
 Network Setup 
 
 
 PC and Thread Border Router are connected to the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jan 2026 10:41:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126529/tcp-ipv6-connection-fails-with-zephyr-bsd-sockets-errno-116-on-nrf54l15-thread-cli-while-openthread-tcp-works" /><item><title>RE: TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/thread/559145?ContentTypeID=1</link><pubDate>Tue, 20 Jan 2026 10:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f857a400-c7ff-4f9b-9d1b-bd75a831f030</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share what you have in your prj.conf?&lt;/p&gt;
&lt;p&gt;There are some socket samples in Zephyr that use BSD sockets, such as the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/zephyr/samples/net/sockets/echo/README.html#sockets-echo"&gt;Echo server&lt;/a&gt; and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/zephyr/samples/net/sockets/echo_client/README.html#sockets-echo-client"&gt;Echo client&lt;/a&gt;. These can be built with OpenThread overlays (overlay-ot.conf), so I recommend looking at them. Please note that TCP is disabled in the OpenThread overlays in these samples to avoid heavy traffic, but it should still be possible to use TCP by leaving it enabled.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/thread/558944?ContentTypeID=1</link><pubDate>Mon, 19 Jan 2026 04:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2329728-6741-4b0f-8b86-6329982118db</guid><dc:creator>rezwin</dc:creator><description>&lt;p data-path-to-node="6,1"&gt;Thank you for the suggestion.&lt;/p&gt;
&lt;p data-path-to-node="6,2"&gt;I have already verified that the OpenThread native TCP API (as seen in &lt;code data-path-to-node="6,2" data-index-in-node="71"&gt;cli_tcp.cpp&lt;/code&gt;) works correctly. I am able to establish a connection and send data using the &lt;code data-path-to-node="6,2" data-index-in-node="161"&gt;otTcp&lt;/code&gt; CLI commands.&lt;/p&gt;
&lt;p data-path-to-node="6,3"&gt;However, my project requirements specifically require the use of the &lt;b data-path-to-node="6,3" data-index-in-node="69"&gt;Standard BSD Socket API&lt;/b&gt; (&lt;code data-path-to-node="6,3" data-index-in-node="94"&gt;socket()&lt;/code&gt;, &lt;code data-path-to-node="6,3" data-index-in-node="104"&gt;connect()&lt;/code&gt;, &lt;code data-path-to-node="6,3" data-index-in-node="115"&gt;send()&lt;/code&gt;) rather than the native OpenThread calls. Currently, when I attempt to use BSD sockets over the Thread interface, I am encountering errors (specifically &lt;b data-path-to-node="6,3" data-index-in-node="275"&gt;116 &lt;/b&gt;) that do not occur when using the CLI.&lt;/p&gt;
&lt;p data-path-to-node="6,4"&gt;Could you please help me identify if there are specific Kconfig requirements or buffer configurations needed in Zephyr to properly bridge the BSD socket layer to the OpenThread TCP stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/thread/558896?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2026 12:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5262a2fd-72ce-4912-93e1-9878cc2e85cd</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried using the socket functions used by the OpenThread CLI commands? You can find them in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-openthread/blob/main/src/cli/cli_tcp.cpp"&gt;modules/lib/openthread/src/cli/cli_tcp.cpp&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/thread/558827?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2026 16:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3309d1e0-50f2-4005-abe9-578572668089</guid><dc:creator>rezwin</dc:creator><description>&lt;p&gt;I have already enabled these configs and still the problem exists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TCP IPv6 connection fails with Zephyr BSD sockets (errno 116) on nRF54L15 Thread CLI, while OpenThread TCP works</title><link>https://devzone.nordicsemi.com/thread/558826?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2026 15:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062b6e62-4f17-4de0-995d-d57bfce53faa</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use UDP and TCP via the BSD sockets if you use Zepyr&amp;#39;s OpenThread integration and IP stack. To use Zephyr&amp;#39;s stack and BSD sockets, make sure that these configs are enabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NETWORKING=y
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_NET_SOCKETS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that&amp;nbsp;nRF Connect SDK 3.1.0 the OpenThread samples were changed: by default they now use the architecture where Zephyr networking is disabled and the OpenThread stack is used directly with the 802.15.4 driver, meaning Zephyr’s networking features (including BSD sockets) are not available unless you explicitly re‑enable them, see&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.1.html#thread"&gt;Migration guide 3.1&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>