title: PHP gethostbyaddr: does not return computer name from the live server?
body: <p>I want to get the computer name that access a page. So this question has been <a href="https://stackoverflow.com/questions/6248204/how-to-get-the-computer-name-from-ip-address">asked</a>.</p>
  
  <p>I tested on my localhast,</p>
  
  <pre><code>$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  echo $hostname;
  </code></pre>
  
  <p>I get my computer name, such as,</p>
  
  <pre><code>lau-pc
  </code></pre>
  
  <p>But when I run this code on my live server, I don't get my computer name, I get ip address instead,</p>
  
  <pre><code>123.136.xxx.xx
  </code></pre>
  
  <p>how come? So I can't get the computer name from the live server then?</p>