How to access cassini server remotely on local network for demonstration?

When Visual Studio starts and the Silverlight application starts, VS will start the cassini server on the specific port, for example:

http: // localhost: 3107 / MyApp.aspx

This is a convenience for developers to test.

Then I want to access this web application from another computer on the local network for a live demonstration like:

http: // mycomputername: 3107 / MyApp.aspx

but I have failed. How do I make it work?

+2


source to share


4 answers


Move your site to IIS. Cassini is for development use only and does not allow remote connections.



An easier solution would be to just RDP on your development machine when doing the demo.

+4


source


Use Fiddler!

Fiddler can act as a "reverse proxy", which means that it can forward incoming requests to a different port or web server.

Step # 0 Before working with any of the following options, you must allow other computers to connect to Fiddler. To do this, select Tools> Fiddler Options> Connections and select the Allow remote computers to connect check box. Then close Fiddler.

Option # 1: Configure Fiddler as Reverse-Proxy Fiddler can be configured so that any traffic sent to http://127.0.0.1:8888 is automatically sent to a different port on the same machine. To set this configuration:

Run REGEDIT Create a new DWORD named ReverseProxyForPort inside HKCU \ SOFTWARE \ Microsoft \ Fiddler2. Set the DWORD to the local port to which you want to redirect incoming traffic (usually port 80 for a standard HTTP server). Reload Fiddler. Go to your browser at http://127.0.0.1:8888



Source: http://www.fiddler2.com/fiddler/help/reverseproxy.asp

+3


source


Try using UltiDev Cassini web server . I have used it myself to build webservices and its very nice and stable.

+1


source


Another (hacky) option would be to use sshd or some other proxy to create a tunnel on a computer on a local port. But @Bob has it right - Cassini is only for local access.

0


source







All Articles