title: Codeception. Webdriver doesn't see localhost
body: <p>Could you help me.
  I use Codeception with Webdriver for my project</p>
  
  <p>Codeception PHP Testing Framework v4.1.3
  Powered by PHPUnit 9.0.1 by Sebastian Bergmann and contributors.</p>
  
  <p>acceptance.suite.yaml:</p>
  
  <pre><code>actor: AcceptanceTester
  modules:
      enabled:
          - WebDriver:
                url: 'https://localhost:8888'
                browser: chrome
                clear_cookies: true
                port: 4444
                capabilities:
                    browser: chrome
                    goog:chromeOptions:
                        w3c: false
  </code></pre>
  
  <p>Docker:</p>
  
  <pre><code>docker run -p 4444:4444 -v /dev/shm:/dev/shm --rm selenium/standalone-chrome
  </code></pre>
  
  <p>I can see my localhost in Browser. If i instead localhost:8888 use external site all right. But by testing i have "This site can't be reached. localhost refused to connect".<br>
  Test is very simple:</p>
  
  <pre><code>&lt;?php
  
  class FirstCest
  {
      public function tryToTest(AcceptanceTester $I)
      {
          $I-&gt;amOnPage('/');
          $I-&gt;wait(5);        
          $I-&gt;makeScreenshot();
          I-&gt;see('Home');
      }
  }
  </code></pre>
  
  <p>thanks in advance</p>