11

I have recently switched from mac development environment to windows development environment. I was used Chrles proxy extensively to capture network traffic, requests and response details. Right now I have installed Charles proxy version 3.7 in windows 8. How ever I have observed that the website on which I am working is not opening at all with Charles proxy ON. It is showing below exception message. And it is working perfectly for all other websites.

Charles Error Report

Failed to connect to remote host

Charles failed to connect to the remote host. Check that your Internet connection is ok and that the remote host is accessible. Maybe your network uses a proxy server to access the Internet? You can configure Charles to use an external proxy server in the External Proxy Settings.

The actual exception reported was:

java.net.ConnectException: Connection timed out: connect Charles Proxy, http://www.charlesproxy.com/

Research that I have done before coming to SE:

I have searched in google with the keyword "Charles Error Report-Failed to connect to remote host". I got couple of links which are related to the above issue.

First link says to check for external proxy setting. I have checked, there are no external proxy settings in my computer.
Second link says open the url in browser and close charles proxy and reopen it. I did that. Still no luck.

How to overcome this issue?

Ramesh
  • 113
  • 1
  • 1
  • 6
  • Having the exact same issue, it's triggered when I search for a single word in Firefox's search bar... – Goles Dec 09 '13 at 21:16
  • Actually, I just discovered the solution. I was behind a VPN: http://www.charlesproxy.com/documentation/faqs/vpn-not-working-with-charles/ – jds Aug 12 '14 at 21:43

2 Answers2

1

Do you get the same problem with other proxies like Fiddler? If so, it's probably not related to Charles but either a network problem or inability of your application to work with a proxy.

Other causes may be using HTTPS (which can cause certificate errors) or using the loopback address (localhost or 127.0.0.1) which may or may not be ignored by the proxy.

UPDATE

In IE10+ Enhanced Protection Mode prevents untrusted applications from accessing local resources. Pages and sites that are not in the Trusted Zone are considered unstrusted, so they can't connect to any local proxy. Fiddler includes a configuration button to configure Windows 8 to bypass this. You can find a very good explanation of what happens and why here.

In Windows 8, EPM is enabled only for Metro IE. In 8.1 it is enabled by default even for Desktop IE.

You may be able to make Charles work again simply by adding your site's address to the Trusted Zone in IE's security settings, or you can download the EnableLoopBackUtility mentioned in Configure Fiddler for Windows 8 Metro-style applications to allow IE to connect to your site through the local proxy

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
  • What doesn't work? Fiddler? What are the symptoms? Fiddler has a ["Win8 Config button"](http://fiddler2.com/documentation/Configure-Fiddler/Tasks/ConfigureFiddlerForWin8) on its toolbar to configure loopback addresses and application exemptions [in Windows 8.1](http://fiddler2.com/blog/blog/2013/08/02/fiddler-and-internet-explorer-11-on-windows-8-1). – Panagiotis Kanavos Dec 16 '13 at 09:47
0

I have experienced this as a timing or caching related gremlin. For me, in most cases, this is resolved by doing force-reload a few times in the browser. Doing so is slightly different on each platform. In Mac/Chrome, holding down Command + Shift + R for a couple of seconds does the trick. In Win/IE, holding Shift and clicking the reload icon in the address bar a couple of times does it - in theory, Shift + F5 should do the same thing, but it does not work as well.

Seth Holladay
  • 8,951
  • 3
  • 34
  • 43