title: Getting ip address using MySQL query
body: <p>In MySQL query:</p>
  
  <pre><code>SELECT host
  FROM information_schema.processlist
  WHERE ID = connection_id( )
  LIMIT 0 , 30
  </code></pre>
  
  <p>The result of ^ this query is: <code>localhost</code>.</p>
  
  <pre><code>SELECT @@hostname;
  </code></pre>
  
  <p>The result of ^ this query is: <code>localhost</code>.</p>
  
  <p>But I need  to get ipaddress like <code>192.168.1.2</code>.</p>
  
  <p><strong>Question:</strong> <em>How to get this result using mysql query?</em></p>