# How to use mitmproxy in android system wide?

**URL:** <https://discourse.mitmproxy.org/t/how-to-use-mitmproxy-in-android-system-wide/1636>\
**Category:** help\
**Created:** [August 12, 2019, 12:59pm UTC](https://discourse.mitmproxy.org/t/how-to-use-mitmproxy-in-android-system-wide/1636 "2019-08-12T12:59:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitornotgit](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gitornotgit](https://discourse.mitmproxy.org/u/gitornotgit)\
**Post date:** [August 12, 2019, 12:59pm UTC](https://discourse.mitmproxy.org/t/how-to-use-mitmproxy-in-android-system-wide/1636/1 "2019-08-12T12:59:46Z")

</div>

Hi there,

I want to debug a MQTT app and MQTT protocol doesn’t follow the proxy set in network section of the android device. How do you guys do such a thing in android ? Is there any app that creates a VPN connection out of a proxy ? Something like ssh tunneling but without any ssh just a socks5 proxy to tunnel phone through ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![snowwolf75](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/snowwolf75/32/454_2.png) [@snowwolf75](https://discourse.mitmproxy.org/u/snowwolf75)\
**Post date:** [August 14, 2019, 1:42am UTC](https://discourse.mitmproxy.org/t/how-to-use-mitmproxy-in-android-system-wide/1636/2 "2019-08-14T01:42:10Z")

</div>

Look into Drony - [https://play.google.com/store/apps/details?id=org.sandroproxy.drony](https://play.google.com/store/apps/details?id=org.sandroproxy.drony)  
I’ll force everything into a proxy, even the traffic that doesn’t respect the OS setting.
