title: How to check remote IP and Port is available?
body: <p>I have to check remote IP and Port is available or not.If its is available it will move to next form.If not available it should come to the initial state.I tried using this</p>
  
  <pre><code>while (true)
  {
      IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties();
      IPEndPoint[] ipEndPoints = ipProperties.GetActiveTcpListeners();
      -------
      -------
      -------
  }
  </code></pre>
  
  <p>I am showing the example coding.it was checking local IP and port and moving to next form.it will check local port and IP is available.if port and IP not available it will come to the initial stage and it was working fine.same thing i have to check in remote Port and IP.</p>