title: How to scan a range of IP addresses on a specific port
body: <p>I'm trying to figure out how to scan a specific TCP port within a range of IPaddresses?</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>static void Main(string[] args)
  {
      IPAddress beginIP = IPAddress.Parse("192.168.1.1");
      IPAddress EndIP = IPAddress.Parse("192.168.3.3");
      int PortNumber = 80;
  
      bool portStatu = scanPort(BeginIP,EndIP,PortNumber);
  }
  
  public bool scanPort(IPAddress beginIP,IPAddress endIP , int portNumber)
  {
       //What should i write...
  }
  </code></pre>