title: find server ip by sql
body: <p>How can I get server ip (<code>host</code>) by a MySQL query?
  an sql like this:</p>
  
  <pre><code>SELECT @@SERVERIP
  </code></pre>
  
  <p>I want to connect to my db by netbeans, and I can't use 'localhost' for <code>host</code>.</p>
  
  <p>thanks</p>