我可以在 Azure 网站上打开端口吗? [英] Can I open ports on Azure Websites?

查看:21
本文介绍了我可以在 Azure 网站上打开端口吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想通过启动自己的 ServiceHost 在 Windows Azure 网站中自行托管 WCF,我可以在 8080 或我想要的任何其他端口上托管端点吗?是否有任何特定的可用端口范围我可以访问或端口访问完全被阻止?

If I want to self host WCF in a Windows Azure Website by spinning up my own ServiceHost can I host end points on 8080 or any other port I want to? Is there any specific usable range of ports I have access to or is port access entirely blocked?

为明确起见,此问题与网络或辅助角色有关,与 Azure 网站有关>

for absolute clarification this question is NOT about web or worker roles and is only about Azure Websites

推荐答案

这篇博文现在有点过时了,因为 Windows Azure 网站现在有更多的功能(比如登台和生产槽、WebJobs 等),但是关于端口的部分是Azure 网站仍然如此.

This blog post is slightly out dated now as Windows Azure Websites have more features now (like staging and production slots, WebJobs, etc) but the part regarding ports is still true for Azure Websites.

何时使用云服务 [...] Windows Azure 网站全是 IIS,Web 服务器提供整个平台,没有空间让长时间运行的进程或线程可以坐下来等待另一个通信IIS 之外的端口

http://blogs.msdn.com/b/cdndevs/archive/2013/11/21/windows-azure-websites-vs-cloud-services.aspx

请注意,现在您可以使用执行后端工作的 webjobs 来运行长时间运行的进程,但您无法监听 80 以外的任何内容

Note that now you can have a long running process using webjobs that does back-end work, but you can't listen on anything other than 80

这篇关于我可以在 Azure 网站上打开端口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆