title: C code to get the IP address
body: <p>How do I get the IP address of the local machine using C code?</p>
  
  <p>If there are multiple Interfaces then I should be able to display the IP address of each interface.</p>
  
  <p><strong>NOTE:</strong> Do not use any commands like <strong>ifconfig</strong> within C code to retrieve the IP address.</p>