I needed an easy way to change the clientIP of a request without having to set a custom break-point and add a header every time or use a proxy service - so I extended Fiddler with a custom rule and I thought I'd share that here for anyone else looking for something similar. I had a few locations that I specifically needed, so I created those as menu items in addition to adding a custom field.
Open your CustomRules.js for modification -
Under class Handlers add:
// Set clientIP
// Modify the country names and IP address as appropriate, or simply use Custom and set the array value to 0
RulesString("&Set clientIP", true)
RulesStringValue(0,"Country Name 1", "0.0.0.0")
RulesStringValue(1,"Country Name 2", "127.0.0.1")
RulesStringValue(2,"Country Name 3", "192.168.1.1")
RulesStringValue(3,"&Custom...", "%CUSTOM%")
public static var sClientIP: String = null;
/* -- end class handlers --*/
Under OnBeforeRequest(oSession: Session) add:
// Set clientIP
if (null != sClientIP) {
oSession.oRequest["clientIP"] = sClientIP;
}
Save the file and the new option will be added to your Rules menu - you can switch IP addresses with a click, and simply refresh the browser to effectively request the page with the assigned IP address.