How to connect to the Azure Compute Emulator remotely to test a web role from an iPhone

筅森魡賤 提交于 2020-01-13 20:20:41

问题


I need to test and debug my web app from an iPhone, but the Azure Compute Emulator appears to only listen on 127.0.0.1 and so it is not accessible from external machines.

Anyone know how to change that?

If it is impossible to change, does anyone have a suggestion for how to set up port forwarding to work around this limitation?


回答1:


This limitation is by design for security reasons. There are, as you noe, a bunch of scenarios where it would be useful to bypass this restriction such as running a test/int server or accessing from mobile devices.

It is easy enough to circumvent though. You simply need to run a reverse proxy server.

My favourite approach here is to use FIddler as this has the added benefit of being able to watch the traffic.

Take a look at this article and it should provide you with sufficeint guidance. If not coment back and I'll write up a blog post with my step-by-step guide.

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



来源:https://stackoverflow.com/questions/8625075/how-to-connect-to-the-azure-compute-emulator-remotely-to-test-a-web-role-from-an

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