Original: http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/MonitorLocalTraffic Monitor traffic to localhost from IE Or. NET
To monitor traffic sent to http://localhost or http://127.0.0.1 from IE8 or below or the. NET Framework:
Use your machine name as the hostname instead of Localhost or 127.0.0.1
For example, instead of
http://localhost:8081/mytestpage.aspx
Go to:
http://machinename:8081/mytestpage.aspx
Use one of these addresses:
-to Use the IPV4 adapter (recommended for the Visual Studio test webserver, Codename:cassini):
http://ipv4.fiddler
-to Use the IPV6 adapter:
http://ipv6.fiddler
-to use localhost in the Host header:
http://localhost.fiddler
Click rules > Customize Rules ... and add this code to the rules file:
Static function onbeforerequest (osession:fiddler.< Span class= "Typ" >session) {if (osession. Hostnameis "MYAPP" { Osession. Host = "127.0.0.1:8081" ;}} /span>
Now, Http://myapp would act as an alias for 127.0.0.1:8081
Monitor traffic to localhost from IE or. NET