<?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>Asset Tracker V1 and DHCP/HTTP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74725/asset-tracker-v1-and-dhcp-http</link><description>Hi, 
 
 I am trying to add an IPv4 HTTP client post-action into the asset tracker v1 app, I have a couple of questions. 
 I am looking at the http_client and DHCP client samples, I would like to make a POST to a web server using the LTE data connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 May 2021 12:46:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74725/asset-tracker-v1-and-dhcp-http" /><item><title>RE: Asset Tracker V1 and DHCP/HTTP</title><link>https://devzone.nordicsemi.com/thread/308978?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 12:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e966cc7c-fee4-40b4-9717-54c664e99d35</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]When the modem connects to the cloud (using nnRFCloud) does it already get assigned an IPv4 address? If so, how can I access this address for use with the http_client module?[/quote]
&lt;p&gt;The IP connectivity is usually provided after the APN is successfully activated: &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/packet_domain/cgev.html"&gt;+CGEV&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;However, this does not give you the &lt;u&gt;&lt;em&gt;&lt;strong&gt;local&lt;/strong&gt;&lt;/em&gt;&lt;/u&gt; IP address directly, which must be queried using &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/packet_domain/cgdcont_read.html"&gt;AT+CGDCONT?&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
[quote user=""]undefined reference to `net_dhcpv4_init&amp;#39; in net_core.c[/quote]
&lt;p&gt;&amp;nbsp;As for this, could you send me the whole application so I can reproduce it? Or the .config file from the build? You&amp;#39;re probably just missing some configuration.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Heidi&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>