title: compare two ip with C#
body: <p>How I can compare two IP address?</p>
  
  <pre><code>string ip1 = "123.123.123.123";
  string ip2 = "124.124.124.124";
  </code></pre>
  
  <p>I need some like this:</p>
  
  <pre><code>if(ip1 == ip2)
  {
     //true
  }
  </code></pre>