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

查看:238
本文介绍了我可以在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.

何时使用Cloud Services [...] 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天全站免登陆