title: Selenium Webdriver: INFO: I/O exception (java.net.BindException) caught when connecting to the target host: Address already in use: connect
body: <p>Im running a Selenium Webdriver with Java/TestNG automated user registration at my website.
  Reading from CSV</p>
  
  <p>First, I open a Firefox with a certain profile
  Then I have a loop and in it I create a user and sign them out, and go to the signup page again and register another user, log them out etc.</p>
  
  <p>It is all working, but I get these red warnings and I do not know what  are  they related to:</p>
  
  <pre><code>INFO: I/O exception (java.net.BindException) caught when connecting to the target host:
  Address already in use: connect
  </code></pre>
  
  <p>I understood now, thanks to the answer below, that I probably need to close() or disconnect() some connections, but which ones?</p>
  
  <p>This snippet of code is what I do once:</p>
  
  <pre><code> public void setUp(ArrayList&lt;ArrayList&lt;String&gt;&gt; array) throws Exception {
       long timeoutInSeconds = 30;
       ProfilesIni profile = new ProfilesIni();
       FirefoxProfile ffprofile = profile.getProfile("SELENIUM");
       WebDriver driver = new FirefoxDriver(ffprofile);
       WebDriverWait wait = new WebDriverWait(driver, timeoutInSeconds );
       driver.manage().window().maximize();
       driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
       userSignup(array, driver, wait);
  </code></pre>
  
  <p>and this is what I loop through:</p>
  
  <pre><code>        driver.get("http://asd.asd.com/users/sign_up");
  </code></pre>
  
  <p>and there is also an open connection to a CSV file reader, but at the end of the method, after passing an array of data, I close it.</p>