<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://violens.dev/feed.xml" rel="self" type="application/atom+xml" /><link href="https://violens.dev/" rel="alternate" type="text/html" /><updated>2026-11-27T12:20:46+00:00</updated><id>https://violens.dev/feed.xml</id><title type="html">VioLens</title><subtitle>A free, open source HTTPS debugging proxy for Windows, Mac and Linux, and an alternative to Fiddler Classic. Free for any use, under the MIT license.</subtitle><author><name>Mark Powell</name></author><entry><title type="html">Why your mobile app’s traffic doesn’t show up in your proxy</title><link href="https://violens.dev/blog/mobile-app-traffic-not-showing-in-proxy/" rel="alternate" type="text/html" title="Why your mobile app’s traffic doesn’t show up in your proxy" /><published>2026-11-24T00:00:00+00:00</published><updated>2026-11-24T00:00:00+00:00</updated><id>https://violens.dev/blog/mobile-app-traffic-not-showing-in-proxy</id><content type="html" xml:base="https://violens.dev/blog/mobile-app-traffic-not-showing-in-proxy/"><![CDATA[<p>You’re troubleshooting an application on your phone. You know there’s something wrong with how it’s calling the back end API, but you’re not entirely sure what it could be. Maybe you’ve already followed the <a href="https://violens.dev/how-to/debug-iphone-android-traffic/">guide on how to debug Android or iPhone traffic</a>, maybe not. But it’s not working and you need it to.</p>

<p>Let’s look at the common errors and what they might tell us about the application or set up. There are two or three major things that have to happen, depending on how you count them.</p>

<p>First, the traffic has to be routed to the proxy that VioLens runs. Seeing no traffic at all likely means this part isn’t set up correctly. Verify that in VioLens, you’ve checked <strong>Tools &gt; Connections</strong> and turned on <strong>Allow remote computers to connect</strong>. Click <strong>Stop</strong>, then <strong>Start</strong>, if it wasn’t. Second, your firewall software may prompt to allow VioLens. If so, allow it on private networks.</p>

<p>Third, make sure the phone is using a proxy, and the proxy is pointing to the IP address and port specified in VioLens.</p>

<p>If you’re not seeing any traffic, it’s almost certainly one of these settings.</p>

<p>If you’re seeing traffic, but it’s full of <code class="language-plaintext highlighter-rouge">CONNECT</code> tunnels failing, that’s a problem with the TLS handshake. There are two failure modes. If all or almost all connections fail, it’s likely that the phone doesn’t trust VioLens’s certificate. Following the instructions linked above to add the VioLens certificate, or similar steps for other products, should allow you to intercept traffic from things like browsers.</p>

<p>Some applications will maintain their own list of allowed certificates instead of allowing the phone to do so. This is commonly called certificate pinning. The symptom you’d see here is that you can see some traffic (usually browsers) but not for a specific application. Instead, you’d see <code class="language-plaintext highlighter-rouge">CONNECT</code> tunnels failing just for that application.</p>

<p>The same behavior for a slightly different reason is particularly common in recent Android apps. Ever since Android 7 (API 24), apps no longer trust user-added CAs by default, again leaving you at the point where you can see browser traffic in VioLens, but get <code class="language-plaintext highlighter-rouge">CONNECT</code> tunnels failing for applications. This is the default behavior, so unless the author has chosen to trust user-added certificates, you’ll see this in the application.</p>

<p>That’s fine for an application you’re writing and debugging. You’re the author, and you can choose whether to trust added certificates by adding a certificates src to your <code class="language-plaintext highlighter-rouge">res/xml/network_security_config.xml</code> as below, and don’t worry, this only works in debug builds, so your release build will be unaffected. You’ll need to ensure that <code class="language-plaintext highlighter-rouge">AndroidManifest.xml</code> points to it as well (<code class="language-plaintext highlighter-rouge">android:networkSecurityConfig="@xml/network_security_config"</code> on the <code class="language-plaintext highlighter-rouge">&lt;application&gt;</code> element, if it’s not there already).</p>

<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c">&lt;!-- res/xml/network_security_config.xml --&gt;</span>
<span class="nt">&lt;network-security-config&gt;</span>
    <span class="nt">&lt;debug-overrides&gt;</span>
        <span class="nt">&lt;trust-anchors&gt;</span>
            <span class="nt">&lt;certificates</span> <span class="na">src=</span><span class="s">"user"</span> <span class="nt">/&gt;</span>
        <span class="nt">&lt;/trust-anchors&gt;</span>
    <span class="nt">&lt;/debug-overrides&gt;</span>
<span class="nt">&lt;/network-security-config&gt;</span>
</code></pre></div></div>

<p>It’s more difficult to do this on an app you don’t control: the author of the app hasn’t specifically told their app to trust added certificates, and it requires rooted Android devices to override that.</p>

<p>Certificate pinning on iOS can be a bit different. Apps will trust certificates you’ve told iOS to trust, so if it fails, it’s almost certainly explicit certificate pinning. On your own application, you can leave pins out of debug builds so you can debug your own app, but you have some of the same problems for an app someone else has written and decided to use certificate pinning.</p>

<p>This really only matters if you need to see what content is being passed. If all you need to see is what hosts are being contacted, setting <strong>Skip decryption for</strong> in VioLens will make the app start working. You’ll be able to see what servers the application talks to, but not listen into what was actually said. Can be important if the goal is to ensure the right domains are allowlisted on your firewall or proxy, for example.</p>

<p>For most devices, including mobile devices, setting a proxy is a suggestion that the HTTP library may choose to follow, or it may choose to ignore. VioLens and similar products act as proxies to become part of the conversation and be able to do what they need to do, so an HTTP library that chooses to not support a proxy will not work. You see the same behavior for similar reasons with QUIC/HTTP/3 or raw sockets.</p>

<p>Flutter apps commonly display this behavior, for example. Flutter uses Dart’s own HTTP client, and that client ignores the proxy settings. If the Flutter app is one you’re writing, you can fix this in debug builds yourself by setting the proxy explicitly:</p>

<div class="language-dart highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">final</span> <span class="n">client</span> <span class="o">=</span> <span class="n">HttpClient</span><span class="p">()</span>
  <span class="p">.</span><span class="o">.</span><span class="na">findProxy</span> <span class="o">=</span> <span class="p">(</span><span class="n">uri</span><span class="p">)</span> <span class="o">=</span><span class="p">&gt;</span> <span class="s">'PROXY 192.168.1.20:8888'</span><span class="p">;</span>
</code></pre></div></div>

<p>Of course, use the proxy address VioLens shows under <strong>Tools &gt; Connections</strong>, which may not be the same.</p>

<p>If you’re using an emulator/simulator, this still works. For an Android Emulator, you have two places to set the proxy: you want the emulated phone’s Wi-Fi proxy, not the proxy for the emulator itself. And you’ll likely need to set the proxy to <code class="language-plaintext highlighter-rouge">10.0.2.2</code>, the default address for the emulator’s host. For an iOS Simulator, it’ll use the macOS network settings, which means the easiest way is to just run VioLens (or similar application) on the host macOS itself, which will prompt you to install the VioLens certificate on the macOS device. You’ll also need to install the certificate inside the simulated iOS device, typically by dragging <code class="language-plaintext highlighter-rouge">ViolensRoot.cer</code> into the simulator and then turning on full trust under <strong>Settings &gt; General &gt; About &gt; Certificate Trust Settings</strong>.</p>

<p>The key to troubleshooting something like this is looking at the symptoms, and thinking about which stage of the communication would fail that way. This lets you target specific settings that could be the issue, while ruling out many more that would result in different symptoms.</p>

<ul>
  <li><a href="https://violens.dev/download/">Download VioLens</a></li>
  <li><a href="https://github.com/MarkSPowell/VioLens">Repo</a></li>
  <li><a href="https://discord.gg/NJfnGnn4PT">Discord</a></li>
</ul>]]></content><author><name>Mark Powell</name></author><summary type="html"><![CDATA[Proxy set, certificate installed, and still nothing from your app? How to tell which setting is wrong from what VioLens shows you.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://violens.dev/assets/social-card.png" /><media:content medium="image" url="https://violens.dev/assets/social-card.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Building a clean-room, Fiddler-compatible extension API in .NET</title><link href="https://violens.dev/blog/porting-fiddler-extensions/" rel="alternate" type="text/html" title="Building a clean-room, Fiddler-compatible extension API in .NET" /><published>2026-11-19T00:00:00+00:00</published><updated>2026-11-19T00:00:00+00:00</updated><id>https://violens.dev/blog/porting-fiddler-extensions</id><content type="html" xml:base="https://violens.dev/blog/porting-fiddler-extensions/"><![CDATA[<p>When I decided to build a Fiddler-compatible, multiplatform replacement from the ground up using clean-room style tactics, I quickly came to realize that the hardest part would be supporting the old but still very valuable extensions. But I’m getting ahead of myself.</p>

<p>If you’re not familiar with Fiddler, it was one of the first tools used for debugging web sites and REST APIs, and some of us still consider it the best, although there are some very strong alternatives. However, Fiddler Classic is no longer free-to-use for commercial purposes. That’s a big deal for me. I’ve been using Fiddler for well over 15 years. Let’s not discuss how much over, because I don’t want to feel old.</p>

<p>When the license change happened, the original author of Fiddler (Eric Lawrence) wrote a <a href="https://textslashplain.com/2026/08/05/fiddler-in-2026/">blog post</a> saying he was disappointed in this decision, and suggesting that someone should rewrite it from the ground up. I decided to try and become the change I wanted to see in the world, and gave it a shot: VioLens is the result. It’s a free-to-use, open source (MIT) HTTP/S Debugger that runs on Windows, macOS, and Linux. The name carries forth the musical instrument concept (violins) and adds a Dad joke (Lens, for inspecting). There’s a reason I’m not a stand-up comic.</p>

<p>Which leads me to the problem of supporting these extensions. I’m a single person working as a hobby, so I’m not able to do the full-on clean room process of having one team examine the original source code, write a spec, and having another team implement that spec. I can’t read the source code at all, partly because then it wouldn’t be a clean reimplementation in any sense of the term, but also because I don’t have access. Instead, I used publicly available documentation, including the metadata tables (assembly references, type and member references) of existing extensions as well as the <a href="https://github.com/telerik/fiddler-docs">fiddler-docs</a> repo, <a href="https://fiddlerbook.com/">fiddlerbook.com</a>, and <a href="https://www.telerik.com/fiddler/fiddlercore/documentation/api">Progress Telerik’s FiddlerCore API reference</a>.</p>

<p>My <code class="language-plaintext highlighter-rouge">IFiddlerExtension</code> is different from <code class="language-plaintext highlighter-rouge">Fiddler.IFiddlerExtension</code>, even if it has identical members, because a type isn’t only defined by its name, but also the assembly that defines it. That means an already compiled extension wouldn’t link to it.</p>

<p>I examined five DLLs. All reference an assembly named <code class="language-plaintext highlighter-rouge">Fiddler</code> with no public key token, so technically I could use a stand-in assembly. They all targeted Fiddler versions 2.1.0.5 to 2.4.2.5 and .NET Framework 2.0, meaning these are old binaries. And they all reference <code class="language-plaintext highlighter-rouge">frmViewer</code>, Fiddler’s own undocumented WinForms main window, which presents its own challenges.</p>

<p>A custom <code class="language-plaintext highlighter-rouge">AssemblyLoadContext</code> with a <code class="language-plaintext highlighter-rouge">Resolving</code> handler could hand old DLLs an in-memory shim assembly named <code class="language-plaintext highlighter-rouge">Fiddler</code>. Because their references are unsigned, nothing cryptographic stops this. However, two other things did. First and most importantly was the possible trademark risk if I pretend to be Fiddler Classic. I’m probably overthinking that part, but part of being a single person hobbyist means a key tenet of my design philosophy is “Don’t get sued”. This isn’t anything new or related to the current owners of Fiddler Classic in any way. I’ve always wanted to avoid lawsuits. From a technical perspective, I wanted VioLens to be multiplatform, and <code class="language-plaintext highlighter-rouge">frmViewer</code> would be difficult to faithfully fake under Avalonia.</p>

<p>Instead, I built a Fiddler-shaped layer in the main application, so many existing extensions could be ported with trivial changes, presuming you either own the source of the extension, or the licensing is permissive enough to permit this. For many, it’s three changes: deleting <code class="language-plaintext highlighter-rouge">using Fiddler;</code> from every file, adding <code class="language-plaintext highlighter-rouge">PortGlobalUsings.cs</code>, and adding a new SDK-style project targeting .NET 10.</p>

<p>Here’s an example from Eric Lawrence’s <a href="https://github.com/ericlaw1979/FiddlerImportNetlog">FiddlerImportNetlog</a> (BSD-3):</p>

<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">using</span> <span class="nn">System</span><span class="p">;</span>
<span class="k">using</span> <span class="nn">System.Collections.Generic</span><span class="p">;</span>
<span class="k">using</span> <span class="nn">Fiddler</span><span class="p">;</span>              <span class="c1">// deleted by the port, in each of the three files that have it</span>
<span class="k">using</span> <span class="nn">System.IO.Compression</span><span class="p">;</span>

<span class="k">namespace</span> <span class="nn">FiddlerImportNetlog</span>
<span class="p">{</span>
    <span class="p">[</span><span class="nf">ProfferFormat</span><span class="p">(</span><span class="s">"NetLog JSON"</span><span class="p">,</span> <span class="s">"Chromium's JSON-based event log format (v1.3.7). ..."</span><span class="p">,</span> <span class="s">".json;.gz"</span><span class="p">)]</span>
    <span class="k">public</span> <span class="k">class</span> <span class="nc">NetLogFormatImport</span> <span class="p">:</span> <span class="n">ISessionImporter</span>
    <span class="p">{</span>
        <span class="k">public</span> <span class="n">Session</span><span class="p">[]</span> <span class="nf">ImportSessions</span><span class="p">(</span><span class="kt">string</span> <span class="n">sFormat</span><span class="p">,</span> <span class="n">Dictionary</span><span class="p">&lt;</span><span class="kt">string</span><span class="p">,</span> <span class="kt">object</span><span class="p">&gt;</span> <span class="n">dictOptions</span><span class="p">,</span>
            <span class="n">EventHandler</span><span class="p">&lt;</span><span class="n">Fiddler</span><span class="p">.</span><span class="n">ProgressCallbackEventArgs</span><span class="p">&gt;</span> <span class="n">evtProgressNotifications</span><span class="p">)</span>
            <span class="c1">// …</span>
</code></pre></div></div>

<p>And I added <code class="language-plaintext highlighter-rouge">PortGlobalUsings.cs</code>, which contains</p>

<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">global</span> <span class="k">using</span> <span class="nn">Violens.CompatShim</span><span class="p">;</span>
<span class="k">global</span> <span class="k">using</span> <span class="nn">Fiddler</span> <span class="p">=</span> <span class="n">Violens</span><span class="p">.</span><span class="n">CompatShim</span><span class="p">;</span>
</code></pre></div></div>

<p>The alias is why <code class="language-plaintext highlighter-rouge">Fiddler.ProgressCallbackEventArgs</code> still compiles without the <code class="language-plaintext highlighter-rouge">using</code>.</p>

<p>Some extensions were more involved. The CSP Rule Collector had its own UI, so I needed to <a href="https://github.com/MarkSPowell/CSP-VioLens-Extension">fork</a> that and rebuild the UI. Eric Lawrence’s Privacy Scanner sample from Telerik’s Fiddler docs validated that extensions could add menus, columns, and row colors, again by dropping the using and removing some <code class="language-plaintext highlighter-rouge">System.Windows.Forms</code> prefixes. I added some steps in my CI to rebuild and test all three ported extensions each time on all three platforms, because knowing when I accidentally break things is important, and I’d rather find out myself than wait for someone to tell me.</p>

<p>Some extensions did really cool things, but I wasn’t confident in the license. I love the idea of flagging bloated images delivered by web pages. I live in a rural area, and didn’t have broadband until about a year ago, so an efficient website is important to me. I couldn’t find any license for the ImageBloat extension, and without a license, I didn’t want to even risk looking for the source. However, the concept itself isn’t complicated, and I was able to build the functionality directly into VioLens.</p>

<p>If you used to use Fiddler Classic, and especially if you maintain or use extensions, I’d love for you to give VioLens a try. If you maintain an extension, try the suggested methods to port it over and let me know if it works. If you use an extension and aren’t sure of the license, let me know what functionality it brings, and I’ll look at adding it.</p>

<ul>
  <li><a href="https://violens.dev/download/">Downloads</a></li>
  <li><a href="https://github.com/MarkSPowell/VioLens">Repo</a></li>
  <li><a href="https://discord.gg/NJfnGnn4PT">Discord</a></li>
</ul>]]></content><author><name>Mark Powell</name></author><summary type="html"><![CDATA[How VioLens ports Fiddler Classic extensions without pretending to be Fiddler.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://violens.dev/assets/social-card.png" /><media:content medium="image" url="https://violens.dev/assets/social-card.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>