问题
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