title: IPv4 to decimal different values?
body: <p>Why is the IPv4's decimal value different with inet_pton and inet_addr (1734763876) than what you get if you use these 2 websites (1684366951) ?</p>
  
  <pre><code>struct sockaddr_in sin;
  inet_pton(AF_INET, "100.101.102.103", &amp;(sin.sin_addr));
  printf("%i\n%i\n", inet_addr("100.101.102.103"), sin.sin_addr);
  </code></pre>
  
  <ul>
  <li><a href="http://www.allredroster.com/iptodec.htm" rel="nofollow">http://www.allredroster.com/iptodec.htm</a></li>
  <li><a href="http://www.ipaddresslocation.org/convertip.php" rel="nofollow">http://www.ipaddresslocation.org/convertip.php</a></li>
  </ul>