title: Get list of my Ethernet devices ip address in my PC with boost library
body: <p>I have a PC that have many Ethernet cards.<br>
  Each of them have an IP address.<br>
  For example:     </p>
  
  <pre><code>eth0 "192.168.1.2"    
  eth1 "192.168.1.100"   
  eth2 "192.168.2.1"  
  </code></pre>
  
  <p>How can i get these list with boost library?</p>
  
  <p>I used this code, but just return: "127.0.0.1"</p>
  
  <pre><code>boost::asio::io_service io;
  boost::asio::ip::tcp::resolver resolver(io);
  boost::asio::ip::tcp::resolver::query query("localhost","");
  boost::asio::ip::tcp::resolver::iterator iter = resolver.resolve(query);
  boost::asio::ip::tcp::resolver::iterator end;
  
  while(iter != end) {
      std::cout &lt;&lt; iter-&gt;endpoint().address().to_string() &lt;&lt; std::endl;
      ++iter;
  }
  </code></pre>