问题描述
我是Amazon Web Services的新手,我想从public-ip访问Amazon Windows实例.我已经使用Windows Server R2 2012创建了ec2实例,并添加了一个负载均衡器来侦听HTTP请求,还为该实例添加了一个弹性ip.它还已被分配给一个安全组,该安全组具有来自任何位置(0.0.0.0)的all-tcp,all-udp,http和HTTPS.内部有一个碳纤维Web服务器作为Windows服务启动( http://localhost:9443/).我想要的是从Web浏览器访问它.我用这个公共IP http://:9443/尝试过,但是无法从浏览器访问它.连接超时,
I am new to amazon web services and i want to access amazon windows instance from public-ip. I have created ec2 instance with windows server r2 2012 and add a load balancer to listen HTTP requests and also add a elastic ip to that instacne. It also has been assigned to a security group which has all-tcp, all-udp, http and HTTPS from anywhere(0.0.0.0). There is a carbon web server started as a windows service inside with (http://localhost:9443/). what i want is to access it from my web browser. i tried it with this public ip http://:9443/ but it is not accessible from browser. connection timed out,
推荐答案
不建议在EC2实例中允许所有流量.
Allowing All Traffic in EC2 Instance is not recommended.
我建议您仅根据您的应用程序需求允许特定的端口.
I Suggest You Allow Specific Ports Only According to your Application Needs.
我认为您不允许Windows防火墙允许流量,不建议将其关闭.
I think You have not allowed the Windows Firewall to allow traffic , Turning it off is not recommended.
尝试在防火墙中创建规则,该规则将允许您绕过Windows防火墙中的端口.
Try to Create a Rule in Firewall that will allow you to Bypass the Port in the Windows Firewall.
引用: https://technet.microsoft.com/en-us/library/cc753558.aspx
这篇关于从公共IP访问Amazon EC2 Windows实例Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!