Q: How can I show socket information?

581 views
Skip to first unread message

EricLaw

unread,
Feb 3, 2010, 10:09:03 AM2/3/10
to Fiddler
Q: I often have to use other tools than fiddler just because I need to
see socket information for each request (especially for authentication
where I need to distinguish per request versus per connection
autentication). Is there a way to see socket information in Fiddler
that I have missed?

A: Of course Fiddler will show you this information! If you right-
click on a Session and choose Properties, you will see the following:

== FLAGS ==================
X-SERVERSOCKET: REUSE Server pipe #3
X-CLIENTIP: ::ffff:127.0.0.1
X-CLIENTPORT: 42559
X-PROCESSINFO: iexplore:3248
X-EGRESSPORT: 42555
X-HOSTIP: 67.199.28.223

This information conveys everything you need to know in order to
determine which requests are made on which server socket. Now,
obviously, this isn’t a simple user-experience if you want to see this
information on a regular basis. To do that, you should add it to the
Fiddler UI, perhaps as a column in the Session List (http://
www.fiddler2.com/fiddler/help/configurecolumns.asp).

To do that, you should open your FiddlerScript file (Rules > Customize
Rules) and add something like so:

public static BindUIColumn("ServerSocketInfo")
function CalcSocketInfo(oS: Session)
{
return (oS["x-EgressPort"] + "=>" + oS["X-HOSTIP"] + ":"+ oS.port);
}

Reply all
Reply to author
Forward
0 new messages