Accessing asp. net development server external to VM

做~自己de王妃 提交于 2019-11-30 10:15:24

I ran into this same problem and am using a TCP tunnel to bypass it. Download this Java app & just tunnel the traffic back. No messing with IIS necessary!

http://jcbserver.uwaterloo.ca/cs436/software/tgui/tcpTunnelGUI.shtml

In command prompt, you'd then run the java app like this... Let's assume you want external access on port 80 and your standard debug environment runs on port 1088...

java -jar tunnel.jar 80 localhost 1088

Yes, it is by design. Consider using IIS instead.

James Avery

The first answer is that you can't do it because the development server is specifically made to just run locally, otherwise it becomes a security risk.

The second answer is that you can get around anything, this hints that there is a way to do it using a reverse-proxy (but the post he links to seems to be dead)

MRG

EDIT : After viewing RichardOD's answer, I fear that my answer below is wrong and you can not access it using IP.

But I suggest you to go with deploying it to IIS.

The VS2008 internal web server ( which I guess is cassini ) creates a port for your app and runs a web server for your app on that port. If you want to access it from outside the machine you have to use that port in addition to IP.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!