title: Distinguish between Local IP and WAN IP by using C++ or C#?
body: <p>I want to write a function with the feature is described as below</p>
  
  <pre><code>bool isLocalIp(String _ip);
  _ip: The string with a ip format or a domain format (ex: 112.42.11.44 or http://abc.def.com/)
  Return: True if the _ip is Local IP, False if _ip is WAN IP
  </code></pre>
  
  <p>I have searched but I did not find any topic about this.
  Someone can show me how to write this function?</p>
  
  <p>Many thanks,</p>
  
  <p>T&amp;T</p>