views:

440

answers:

5

Currently the local webserver exectutes at http://localhost:51377

Is there any option of customizing the web server in order executing under http://192.168.1.2:51377 (where 192.168.1.2 is my static intranet ip address)

A: 

Cassini will only serve local requests. If you want a lightweight webserver you may want to take a look at UltiDev

Shawn Miller
Any idea how can I download UltiDev via http proxy?
Grzenio
A: 

If the intention is for allowing other people on your network to connect to your development server, the answer is no. Cassini is specifically built to reject any outside connections.

If for some reason you need to reroute it, you could add an alias in your hosts file to redirect "localhost" to 192.168.1.2 instead of 127.0.0.1. I've never tried this, and it may not work anyway, due to the above mentioned reason - Cassini may interpret it as an outside connection.

womp
actually i would like to debug a piece of code locally with requests coming from a webpage
Chocol8
Publish it to your IIS server, and then use "Attach to process" to attach to w3wp.exe from Visual Studio. You'll be able to debug the code every time someone hits your IIS.
womp
+2  A: 

I just released the CassiniDev 3.5.1/4.0.1 beta with a simple test fixture example if you are interested.

Supports arbitrary IP and Host name

Cassini for Developers and Testers: http://cassinidev.codeplex.com

Sky Sanders
A: 

If you want, you can easily just use Fiddler (www.fiddler2.com) to redirect requests from an arbitrary address to the Cassini loopback address.

EricLaw -MSFT-
A: 

you can patch cassini(WebDev.WebServer.exe) to unlock the localhost loopback restriction --> http://eeichinger.blogspot.com/2009/12/sniff-http-traffic-with-aspnet.html

In other words, allow outside connections and debug them inside Visual Stuido :-)

Eric Labashosky