的HttpListener不接收远程请求,即使与防火墙向下和所有prefixes注册 [英] HttpListener not receiving remote requests, even with the firewall down and all prefixes registered

查看:495
本文介绍了的HttpListener不接收远程请求,即使与防火墙向下和所有prefixes注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了使用的HttpListener是很完善从同一计算机发送请求的服务器,但甚至没有收到从远程机器发送的请求。我已经使用(包括使用Netsh注册)以下的prefixes尝试:HTTP:// *:8080 /, HTTP:/ / +:8080 / 的http://本地主机:8080 / 和的特定IP地址电脑主机后面端口8080(我也确信没有其他应用程序正在使用8080。)我在防火墙上打开了相应的端口,当没有工作,我关掉防火墙只是为了看看它是否是一个防火墙的问题,而且也没有对这个问题的影响。我不知道什么尝试下一个,请大家帮忙!

I've written a server using HttpListener that works perfectly well for requests sent from the same computer, but doesn't even receive requests sent from a remote machine. I've tried using (including registering with netsh) the following prefixes: http://*:8080/, http://+:8080/, http://localhost:8080/, and the specific IP address of the host computer followed by port 8080. (I also made sure no other applications were using 8080.) I opened up the appropriate ports in the firewall, and when that didn't work, I turned off the firewall just to see if it was a firewall issue and that also had no affect on the problem. I have no idea what to try next, please help!

此外,在运行该Web服务的机器是亚马逊网络服务的Microsoft Windows Server 2008 R2与SQL Server防爆preSS和IIS EC2实例。

Also, the machine running this web service is a Amazon Web Services Microsoft Windows Server 2008 R2 with SQL Server Express and IIS EC2 instance.

推荐答案

对于未来的用户,更详细的解决办法是添加一个向内的自定义TCP规则,其中包括8080端口,在端口范围:到安全组中使用我的EC2实例。

For future users, the solution in more detail was to add an Inbound Custom TCP rule that included port 8080 in the 'Port range:' to a Security Group used by my EC2 instance.

  • 感谢@shashankaholic指出了这一点

这篇关于的HttpListener不接收远程请求,即使与防火墙向下和所有prefixes注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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