Configure Fiddler As Reverse proxy
- Sudherson V
- May 19, 2015
- 1 min read
Fiddler acts as a proxy sniffing the traffic that originates from your local computer. With Fiddler up and running, look at the brower's LAN settings -> Proxy server -> Advaned. Fiddler will be sniffing at the specific port.
If you wish to sniff traffic for inbound requests to applications hosted on your local computer, you need to configure it as below.

Source: http://docs.telerik.com/fiddler/configure-fiddler/tasks/UseFiddlerAsReverseProxy/
I used WCFTestClient to test my local application, the traffic was not captured until I fixed the last part which was missing in the above link.
Click Tools > Fiddler Options. Ensure Allow remote clients to connect is checked.

Close Fiddler.
Start REGEDIT.
Create a new DWORD named ReverseProxyForPort inside HKEY_CURRENT_USER\SOFTWARE\Microsoft\Fiddler2.
Set the DWORD to the local port where Fiddler will re-route inbound traffic (in my case it was port 27130).

Now, any traffic that is inbound to 8888 is routed to port 27130.
Restart Fiddler.
In a browser, go to http://127.0.0.1:8888.
Ensure the "Allow remote clients to connect" checkbox is checked.
Restart Fiddler if prompted.
Click Rules > Customize Rules.
Inside the OnBeforeRequest handler*, add a new line of code:

Configure your WCFTestClient to listent at 8888 where fiddler is sniffing.
Replace 27130 to 8888 in WCFTestClient

Now fiddler provides the sniffing goodness.