title: how to pass ip-address to webBrowser control
body: <p>How to pass IPAddress to webBrowser control</p>
  
  <p>This is my code but i don't know how to pass ip-address to webBrowser control.</p>
  
  <pre><code>IPHostEntry host;
  string localIP = "?";
  host = Dns.GetHostEntry(Dns.GetHostName());
  foreach (string line in File.ReadAllLines("proxy.txt"))
  {
      IPAddress ip = IPAddress.Parse(line);
      if (ip.AddressFamily.ToString() == "InterNetwork")
      {
          localIP = ip.ToString();
          textBox1.Text = ip.ToString();
  
          // This code doesn't work, it's just a hypothetical example:
          webBrowser1.SourceIPAddress=ip; 
  
          webBrowser1.Navigate(textBox2.Text);
      }
  }
  </code></pre>
  
  <p>this is how i want to pass ip-address to webBrowser control</p>
  
  <pre><code>//The code doesn't work, it's just a hypothetical example:
  webBrowser1.SourceIPAddress = ip;
  </code></pre>