question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"No internet connection" in Android app with using mitmproxy, but works fine with Charles

See original GitHub issue
Steps to reproduce the problem:

mitmproxy

  1. Install the mitmproxy certificate through http://mitm.it/
  2. Start mitmproxy with mitmproxy -p 8080
  3. Set proxy settings on Android Marshmallow or Nougat
  4. Open the application
  5. Get prompted with the error

Charles

  1. Install the Charles proxy certificate through http://chls.pro/ssl
  2. Start Charles
  3. Set proxy settings on Android Marshmallow or Nougat
  4. Open the application
  5. See traffic in Charles
Any other comments?

I cannot see any traffic from the application in mitmproxy what so ever. Nothing. Could this be because the application blocks the mitmproxy certificate somehow?

System information

Mitmproxy version: 2.0.2 (release version) Python version: 3.6.1 Platform: Darwin-15.0.0-x86_64-i386-64bit SSL version: OpenSSL 1.1.0e 16 Feb 2017 Mac version: 10.11.1 (‘’, ‘’, ‘’) x86_64

Also installed and tried on an Ubuntu server.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
kwhatcommented, Jul 29, 2019

Guess the solution is use http://chls.pro/ssl and not https://github.com/mitmproxy/mitmproxy 👍

2reactions
scramblrcommented, Jun 4, 2020

It’s a huge problem for Android testers and forced me to move away from mitmproxy for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No internet connection in Android after using Mitmproxy
The certificates created by mitmproxy should be fine. Burpsuite or Fiddler ones did not work for me though. Share.
Read more >
MITM Proxy for Android Emulators - Medium
After using Charles for 2 days, I wanted to try out some open source tool to avoid the repeated prompts and restart from...
Read more >
How to mitmproxy part 1: Inspecting Android Network Traffic ...
Open the emulator · Go to setting by clicking the ... · Go to Setting -> Open the Proxy tab. · Uncheck the...
Read more >
How to inspect network traffic using mitmproxy - Bad Gateway
APIs are everywhere and that's not about to change. Breaking down each part of your code into separate services is (often) good but...
Read more >
How to Use Charles Proxy to View the Data Your Mobile Apps ...
Tap the info icon next to the connected network, then scroll to the bottom and select "Configure Proxy." Select the row for "Manual,"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found