views:

2843

answers:

8

How do I display localhost traffic in Fiddler while debugging an ASP.NET application?

+13  A: 

try using this:

http://ipv4.fiddler/folder

instead of

http://localhost/folder

this also works with ports

http://ipv4.fiddler:12345/folder

bendewey
+1  A: 

Ensure that in your Fiddler Connections that localhost isn't in the "IE should bypass Fiddler for URLs that start with:" box.

Jordan S. Jones
The "IE should bypass Fiddler for URLs that start with" is empty.
Michael Kniskern
+1  A: 

Check out this link...the 'workaround' is hacky, but it does work:

Tip for using Fiddler on localhost

Justin Niessner
I tried that method and it prompts me with an IE credential pop up. I enter my AD user credentials and get a HTTP 401.1 Logon Failed.
Michael Kniskern
I provided an answer with a suggestion in one of comments from the blog post.
Michael Kniskern
A: 

You should uncheck the checkbox:

Bypass proxy server for local addresses

Located at proxy configuration of Internet Explorer.

Vitaly Polonetsky
It is currently unchecked
Michael Kniskern
+7  A: 

For an ASP.NET web site project:

1) Right-click the project and select Property Pages
2) Select Start Options
3) Under the Server section, click the "Use custom server" and edit the Base URL by replacing localhost with your computer's name.

Michael Kniskern
+1  A: 

Probably the easiest way to monitor traffic to localhost is to replace "localhost" with "localhost." in the browser's URL bar. E.g.

http://localhost./MyApp/default.aspx
M4N
A: 

Try with http://127.0.0.1. <-- note the . at the end

So you can still connect to Casini and debug easily (I'm currently debugging page on http://127.0.0.1.:1718/login/Default.aspx ).

kape123
If localhost. answer doesn't work out for you (as it didn't worked out for me)
kape123
A: 

Start Fiddler. Go to Tools--> Fiddler Options. Choose Connections tab. Check the 'USe PAC Script' option.

Now you will be able to monitor local traffic as well

akjal