My aim is to log all requests coming to IIS10 server on the Windows Server 2016 from any customer.
A request is called with the port 80. Fiddler should redirect all requests to IIS on the port 8888.
I made all steps described by Eric Lawrence:
If you want Fiddler to capture traffic coming *in* to your IIS server and going *out* from your IIS server, then you need to run Fiddler in both reverse proxy mode and normal proxy mode. First, get Fiddler capturing the traffic coming out from your IIS server (by editing machine.config & setting the proxy settings for WinHTTP to 127.0.0.1:8888, etc). Then, move your IIS instance to a different port (8080) and configure Fiddler to listen on port 80 as well (e.g. type !listen 80 in QuickExec to set up a second listening endpoint). In FiddlerScript, you then need to forward requests received on port 80 to your IIS instance (8080).
source https://www.telerik.com/forums/capture-all-iis-traffic-on-the-web-server
I see endless loop of requests sent from Fiddler to IIS. Only one request is sent from a client machine( tested also with Fiddler). Also after I disable "Capture Traffic" the outgoing requests to IIS are logged in Fiddler.
Configuration
IIS domain binding set to the port 8888
Machine.config
<system.net>
<defaultProxy>
<proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>
</system.net>
Custom rules in Fiddler:
if (oSession.host == "xxx.com:80")
{
oSession.host = "xxx.com:8888";
}
Allow remote computers to connect set to true in Fiddler.
What can be wrong in the configuration?