Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force visual studio to start development server using the hostname localhost. (with period at end)

Is it possible to change the hostname that the development server fires up in visual studio 2008? Ultimately I would like visual studio to start directly on http://localhost.:xxxx/ (note the period). As I am doing more ajax type calls I find that I need to inspect traffic more often using tools like fiddler to check responses/requests. (Fiddler cannot see requests over http://localhost/ as they do not traverse the regular network stack).

I looked through the web server configuration page but nothing jumped out.

I don't particularly want to go the route of configuring IIS on the box but would consider it with a compelling answer.

like image 878
Michael Gattuso Avatar asked Dec 29 '22 13:12

Michael Gattuso


1 Answers

If you have a simple setup, you might try a new option added in v2.2.4.0.

Inside the registry, under HKCU\Software\Microsoft\Fiddler, add a new Reg_SZ named HookWithPac with the value set to True. You should find that Fiddler now registers as the system proxy using a simple PAC script rather than manually specifying 127.0.0.1:8888. This, in turn, causes IE to send LocalHost traffic to Fiddler.

Please let me know if this works out for you!

like image 65
EricLaw Avatar answered Jan 13 '23 13:01

EricLaw