<?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>Getting the device IP-adress from the Thread SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29985/getting-the-device-ip-adress-from-the-thread-sdk</link><description>Hello! 
 I have been lurking around the Thread SDK and I wonder if it is possible to get the IP-address of the device, and if so, how? I am stuck here so any help would be appreciated! 
 To clarify I would like the device itself to find its own IP-adress</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jan 2018 15:11:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29985/getting-the-device-ip-adress-from-the-thread-sdk" /><item><title>RE: Getting the device IP-adress from the Thread SDK</title><link>https://devzone.nordicsemi.com/thread/119211?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 15:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1c736e-c127-417f-8d86-ad14a08088b3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Henrik,&lt;/p&gt;
&lt;p&gt;It sounds like you want output similar to the OpenThread CLI command &lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/README.md#ipaddr"&gt;&lt;code&gt;ipaddr&lt;/code&gt;&lt;/a&gt;, just initiated from the code. Is this understanding correct?&lt;/p&gt;
&lt;p&gt;The function &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.threadsdk.v0.11.0/group__api-ip6.html#gaeb12d8a7908e9b8eebf38394cd414dde"&gt;&lt;code&gt;otIp6GetUnicastAddresses()&lt;/code&gt;&lt;/a&gt; should do the job. You can have a look at the &lt;a href="https://github.com/openthread/openthread/blob/5fc97364f3c5ce658afbb80aa90b375dcb469379/src/cli/cli.cpp#L1051"&gt;CLI implementation&lt;/a&gt; to get an idea how to use it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>