title: Converting IP Address to Hex
body: <p>I was wondering how to manually convert an IP address to a hex value on an x86 machine. For example, the book I was reading gives the hex representation of 192.168.42.72 as:</p>
  
  <pre><code>    0x482aa8c0
  </code></pre>
  
  <p>but never explains how the conversion works. So, how does it?</p>