title: SocketException when using Chrome driver with Selenium Webdriver
body: <p>I am learning Selenium webdriver, after successfully using firefox, now I wanted to try launching Chrome instead. So I set up its driver</p>
  
  <pre><code>System.setProperty("webdriver.chrome.driver","C:\\Users\\user\\OAutomation Test\\browser drivers\\chromedriver.exe");
   WebDriver driver = new ChromeDriver();
   driver.get("http://localhost:7001/mywebapp");
  </code></pre>
  
  <p>but when the code flow hits the driver.get() instruction I am getting this exception:</p>
  
  <pre><code>starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 9520
  Only local connections are allowed.
  Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset
  Build info: version: '3.8.0', revision: '924c4067df', time: '2017-11-30T11:36:59.109Z'
  System info: host: 'CPX-T5OF1LAMVRV', ip: '10.160.209.195', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
  Driver info: driver.version: ChromeDriver
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:142)
      at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:181)
      at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:168)
      at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:123)
      at automationFramework.FirstTestCase.startChrome(FirstTestCase.java:512)
      at automationFramework.FirstTestCase.main(FirstTestCase.java:145)
  Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:209)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
      at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
      at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:282)
      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
      at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
      at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
      at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)
      at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
      at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
      at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:138)
      at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:86)
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:101)
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
      ... 8 more
  </code></pre>
  
  <p>and displaying this page:</p>
  
  <p><a href="https://i.stack.imgur.com/swUIk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/swUIk.png" alt="enter image description here"></a></p>
  
  <p>What does that mean this <em>"Only local connection allowed"</em> and How to fix it?</p>