title: Most efficient way to store IP Address in MySQL
body: <p>What is the most efficient way to store and retrieve IP addresses in MySQL?  Right now I'm doing:</p>
  
  <pre><code>SELECT * FROM logins WHERE ip = '1.2.3.4'
  </code></pre>
  
  <p>Where ip is a <code>VARCHAR(15)</code> field.</p>
  
  <p>Is there a better way to do this?</p>