If you are running an IIS server and you want to capture HTTP traffic send from remote clients, you can add a custom rule in Fiddler.

 

Before you create the custom rule make sure port 8888 is open in de Windows firewall.

Just add an new inbound firewall rule:

 

Open Windows Firewall:

image

 

Click on “Advanced settings”:

image

 

Click on “Inbound Rules” > “New Rule…”:

image

 

Assume your computer has an ip4 address:

 

image

 

Click on “Port”:

 

image

 

Enter “8888” in the “Specific local ports” textbox:

 

image

image

 

image

 

Enter “Port 8888” in the “Name” textbox and click Finish:

image

 

 

Now we are ready to add a custom rule to Fiddler:

image

 

Assuming the ip4 address of the IIS machine = “10.2.200.20” and de site you want to debug run in IIS under port 80, then:

 

In the “OnBeforeRequest” function add:

if (oSession.host.toLowerCase() == "10.2.200.20:8888") oSession.host = "10.2.200.20:80";

 

image

 

Restart fiddler and when you access the website from an other machine by using the 10.2.200.20:8888 address, fiddler should capture the traffic and pass is to the website running on port 80.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.