Firefox proxy server refusing Connection

browsermob-proxy 'server is refusing connections' error
The proxy server is refusing connections – Fix for Firefox Browser

Selenium Webdriver 2.42.2, browsermob-proxy Beta 9, Windows 7/Firefox

The proxy server is refusing connections

Firefox is configured to use a proxy server that is refusing connections.

Check the proxy settings to make sure that they are correct. Contact your network administrator to make sure the proxy server is working.

Anyone know if this could be a network issue, we do not use proxy servers in our network. I have also run the browsermob-proxy.bat -port 9090 to startup the server. Below is a sample of the code I've tried:

public void setDriver(String browser, String environment, String platform) throws Exception { ProxyServer server = null; // start the proxy server = new ProxyServer(9091); server.start; server.setCaptureHeaders(true); server.setCaptureContent(true); // set the Selenium proxy object Proxy proxy = server.seleniumProxy; //Proxy proxy = new Proxy; //proxy.setHttpProxy("localhost:9091"); caps = DesiredCapabilities.firefox; caps.setCapability(CapabilityType.PROXY, proxy); server.newHar("test"); public void closeDriver throws Exception { Har har = server.getHar; // browserMob proxy FileOutputStream fos = new FileOutputStream("C:/Downloads/browserMob.har"); har.writeTo(fos); // browserMob proxy server.cleanup; // browserMob proxy server.stop; // browserMob proxy this.driver.quit;


Related posts:

  1. Tor proxy server is refusing Connections
  2. Proxy server refusing Connections
  3. Mozilla proxy server refusing Connection
  4. Firefox proxy server is refusing Connections