Alternatively, you can write a rule that does the same thing.
Say you're running a website on port 80 of a machine named WEBSERVER.
You're connecting to the website using Internet Explorer Mobile Edition on a
Windows SmartPhone telephone device for which you cannot configure the web
proxy. You want to capture the traffic from the phone and the server's
response.
- Start Fiddler on the WEBSERVER machine, running on the default port
of 8888.
- Click Tools | Fiddler Options, and ensure the "Allow remote clients
to connect" checkbox is checked. Restart if needed.
- Choose Rules | Customize Rules.
- Inside the OnBeforeRequest handler, add a new line of code:
if (oSession.host.toLowerCase()
== "webserver:8888") oSession.host = "webserver:80";
- On the SmartPhone, navigate to
http://webserver:8888
Requests from the SmartPhone will appear in Fiddler. The requests
are forwarded from port 8888 to port 80 where the webserver is running.
The responses are sent back through Fiddler to the SmartPhone, which has no
idea that the content originally came from port 80.