本文介绍了我可以在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网站现在具有更多功能(例如暂存和生产槽位,WebJob等),该博客文章现在已经过时了,但是有关端口的部分是对于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.

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网站上打开端口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 02:58