开发者

Proxy to re-route web requests

When running an ASP.NET web application on a local development machine, e.g. http://devmachine:1234, I would like to connect to that machine from a virtual pc that uses different browsers. As far as I know the development webserver only serves traffic for the local machine.

Is there a program / proxy that I can run on my local development machine that will listen for incoming connections from the virtual pc's browser and redirect them to the development webserver on my local machine?

e.g. virtual 开发者_运维问答pc browser connect via proxy to local pc port 8080, then passes it on to devmachine port 1234


I tend to avoid using Casini for all but the most trivial example or proof-of-concept sites for this reason.

You're better off using IIS-proper rather than Casini/ASP.NET web development server.

Create either a web site or a virtual directory in IIS with the physical path that's the same as your local development files. This way you'll be able to connect from any machine via your IP address and the site will be consistently available via a known address rather than sporadically available (i.e. when you have Casini running) via a port that varies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜