2

When Start Visual studio and run a silverlight application, VS will start a cassini server on specific port, like:

http://localhost:3107/MyApp.aspx

This is convenience for developer for testing.

Then I want to access this web app from another computer in local LAN for live demo purpose like:

http://mycomputername:3107/MyApp.aspx

but I failed. How to make it working?

KentZhou
  • 24,805
  • 41
  • 134
  • 200

4 Answers4

4

Move your site to IIS. Cassini is meant for development only and doesn't allow remote connections.

A simpler solution would just be to RDP into your development machine while doing the demo.

Bob
  • 97,670
  • 29
  • 122
  • 130
3

Use Fiddler!

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

Step #0 Before either of the following options will work, you must enable other computers to connect to Fiddler. To do so, click Tools > Fiddler Options > Connections and tick the "Allow remote computers to connect" checkbox. Then close Fiddler.

Option #1: Configure Fiddler as a 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:

Start REGEDIT Create a new DWORD named ReverseProxyForPort inside HKCU\SOFTWARE\Microsoft\Fiddler2. Set the DWORD to the local port you'd like to re-route inbound traffic to (generally port 80 for a standard HTTP server) Restart Fiddler Navigate your browser to http://127.0.0.1:8888

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

Community
  • 1
  • 1
Alex
  • 2,350
  • 2
  • 20
  • 17
1

Try using UltiDev Cassini Web Server. I'v used it my self to create web services and its very good and stable.

Donny V.
  • 22,248
  • 13
  • 65
  • 79
0

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

aronchick
  • 6,786
  • 9
  • 48
  • 75