title: How to get IP Address from url without gethostbyname in Winsock API
body: <p>I want to get IP Address from URL. I find the answer in google, it only has <code>gethostbyname()</code> function solution, but MSDN said that this function is not used anymore.</p>
  <p>I try to use <code>getaddressinfo()</code> or <code>getnameinfo()</code> (the example in MSDN), it only returns 255.255.255.255.</p>
  <p>How can I do? Thank all!</p>