View 127.0.0.1:8080 traffic in Charles Proxy

Mick Byrne picture Mick Byrne · Mar 3, 2013 · Viewed 10.2k times · Source

I use Charles Proxy to monitor my web traffic (specifically, looking at the API traffic in iOS and Android apps). I have an API site running locally on 127.0.0.1:8080, but that traffic doesn't appear in Charles Proxy. I've been fiddling around with the settings, but can't seem to get it to work - any ideas?

Answer

Karl von Randow picture Karl von Randow · Jan 25, 2016

Use localhost.charlesproxy.com instead of localhost. That's setup on the charlesproxy.com DNS to point to 127.0.0.1, and always will. And because it's not literally localhost it should bypass the OS's hardwired logic for localhost.

It is also possible to use local.charles, but only if Charles is actually running and you're using it as your proxy. So I prefer the localhost.charlesproxy.com solution.

More information here: https://www.charlesproxy.com/documentation/faqs/localhost-traffic-doesnt-appear-in-charles/