title: gethostname() in windows
body: <p>I've found out that the gethostname() function returns the standard host name for the local computer, but I am a little confused about the term "host name",is it the name of the computer at which the function is being called or the name of the server with which the computer is connected in a network...</p>
  
  <pre><code>          char szPath[128] = "";
            gethostname(szPath, sizeof(szPath));
  </code></pre>
  
  <p>also what shoud I do if I want to find out the ip address of the local host... </p>