EC2:无法在Windows实例中打开端口5080 [英] ec2: cannot open port 5080 on windows instance

查看:602
本文介绍了EC2:无法在Windows实例中打开端口5080的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty的新与EC2,防火墙设置等,所以我可能失去了一些东西很明显,但:

  • 在我创建了一个开始使用Windows实例
  • 在与具有5080指定的
  • 安全组
  • ,并用弹性IP相关

在该实例我有一个RED5服务器上运行。当我在127.0.0.1:5080运行服务器的话,我可以在该实例上的浏览器访问它,所以我知道了服务器的工作原理。

在我的弹性IP运行然而,我无法连接到它,无论是从实例中,也没有从外面。

当我从外面的世界运行telnet 75.101.147.86 5080我得到'连接被拒绝

任何如何调试这个线索,将是非常美联社preciated!

在此先感谢,

马丁

解决方案

在AWS管理控制台。

1转到亚马逊EC2 标签

2点击实例并注意安全组名称安集团列实例要打开它。

3点击链接安全组

4点击安全组名称第2步。

5,您应该会看到一个下拉菜单,上面写着 SSH ,单击它并选择自定义...

6输入:

 协议TCP
 从端口5080
 到端口5080
 来源(IP或集团)0.0.0.0/0  - 注1:
 

7单击保存。

如果您需要UDP也,然后重复步骤6使用协议UDP。

注1:阅读:<一href="http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing更多的信息.​​..但不要尝试,直到你有它的工作为世界限制的子网。

如果它不后工作,那么你可能有一个防火墙的实例。我更多的是Ubuntu的家伙,但试试这个:<一href="http://www.cyberciti.biz/faq/disable-linux-firewall-under-centos-rhel-fedora/">http://www.cyberciti.biz/faq/disable-linux-firewall-under-centos-rhel-fedora/红帽

I'm pretty new with ec2, firewall settings etc, so I might be missing something obvious, but:

  • I've created a 'getting started with windows' instance
  • with a security group that has 5080 specified
  • and is associated with an elastic ip

On the instance I have a red5 server running. when I run the server it on 127.0.0.1:5080, i can access it from a browser on that instance, so I know the server works.

When I run it on the elastic IP however, I can't connect to it, neither from within the instance nor from outside.

when I run telnet 75.101.147.86 5080 from the outside world i get 'connection refused'

Any clues on how to debug this would be highly appreciated!

Thanks in advance,

Martin

解决方案

In the AWS management console.

1 goto Amazon EC2 tab

2 Click on Instances and note the Security Group Name from the Security Group column for the instance you want to open it for.

3 Click on the link Security Groups

4 Click on the Security Group Name from step 2.

5 You should see a dropdown that says SSH, click it and select Custom..

6 Enter:

 Protocol                  TCP
 From Port                 5080
 To Port                   5080
 Source (IP or Group)      0.0.0.0/0       -- NOTE 1

7 Click Save.

If you need UDP also, then repeat using Protocol UDP in step 6.

NOTE 1: Read : http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing for more info... but don't try to limit the subnet until you have it working for the world.

If it doesn't work after that then you may have a firewall on the instance. I'm more of an ubuntu guy, but try this : http://www.cyberciti.biz/faq/disable-linux-firewall-under-centos-rhel-fedora/ for RedHat

这篇关于EC2:无法在Windows实例中打开端口5080的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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