views:

3450

answers:

7

When using Fiddler to monitor HTTP Requests & Responses in Internet Explorer it ignores all traffic directed to http://localhost.

+12  A: 

To get Fiddler to capture traffic when you are debugging on local host, after you hit F5 to begin degugging change the address so that localhost has a "." after it.

For instance, you start debugging and the you have the following URL in the Address bar:

http://localhost:49573/Default.aspx

Change it to:

http://localhost.:49573/Default.aspx

Hit enter and Fidder will start picking up your traffic.

NotMyself
+14  A: 

Fiddler's website addresses this question directly.

There are several suggested workarounds, but the most straightforward is simply to use the machine name rather than "localhost" or "127.0.0.1":

http://machinename/mytestpage.aspx
Matt Dillard
+6  A: 

If you're using Fiddler2, this can be changed just by changing the configuration.

Go to Tools, Fiddler Options ..., select the Connections tab, then make sure Monitor all connections is ticked.

Works for me now, without having to to anything special with the URLs.

Antony Scott
You're lucky - this doesn't 'work on my machine'. :-( (Fiddler V2.2.2.0)I'm using the 'http:/machinename/' workaround, which isn't ideal, as this require machine specific startup URL to be specified in my IDE configuration, and this isn't friendly in a multi-developer environment.
belugabob
+1  A: 

make sure Monitor all connections is ticked. it does not work for me maybe port is diffren i need yo see httprequest to my site from gmail my site is on win xp and iis5(my own machine)

+3  A: 

The correct answer is that it's not that Fiddler ignores traffic targeted at Localhost, but rather that most applications are hardcoded to bypass proxies (of which Fiddler is one) for requests targeted to localhost.

Hence, the various workarounds available: http://www.fiddler2.com/fiddler/help/hookup.asp#Q-LocalTraffic

A: 

Windows XP:

Be sure to set to click the settings button for each of the items in the "Dial-up and Virtual Private Network settings" listbox in the "Connections" tab of the "Internet Options" control panel applet.

I noticed that Fiddler would stop using the "LAN settings" configuration once I connected to my VPN. Even if the traffic wasn't going through the VPN.

User1
A: 

Use your local IP address (not 127.0.0.1) instead would work, such as 192.16.0.88 etc. Go to cmd.exe and type ipconfig and you will see it.

alt text

schrodinger's code