title: How to get local IP and MAC address C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/212528/linux-c-get-the-ip-address-of-local-computer">Linux / C++: Get the IP Address of local computer</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to get my local computer's <strong>IP and MAC</strong> addresses of <strong>all interfaces</strong>, but I can not really succeed. I need to get it together, so I know which IP belongs to which MAC.</p>
  
  <p>I went through a lot of searching on google and even here, but I can not really find a <strong>C code</strong> for this.</p>
  
  <p>Could you please help me?</p>
  
  <p>Thanks in advance! I would really appreciate that!</p>