简体   繁体   English

IIS-端口8080上的网站可以使用localhost访问,但不能使用外部IP地址访问

[英]IIS - Website at port 8080 can be accessed using localhost but not with external IP address

I have 3 websites running on my server, all of them on different ports. 我的服务器上运行着3个网站,所有网站都在不同的端口上。 One is on port 80 and it works fine, the other one is on port 88 and it also works fine. 一个在端口80上工作正常,另一个在端口88上工作正常。 Today I deployed a third one on port 8080, opened the port in Firewall. 今天,我在端口8080上部署了第三个端口,并在防火墙中打开了该端口。

I can access it with http://localhost:8080/ , with 127.0.0.1:8080 and with it's internal IP address. 我可以使用http://localhost:8080/ 127.0.0.1:8080及其内部IP地址进行访问。 I can't access it using the external IP address for some reason. 由于某种原因,我无法使用外部IP地址访问它。 I tried accessing it locally using the external IP address and I tried from another computer. 我尝试使用外部IP地址在本地访问它,然后尝试从另一台计算机访问。

It is worth noting that the website on port 8080 is almost identical to the one on port 80. 值得注意的是,端口8080上的网站与端口80上的网站几乎相同。

Initially I thought it was a firewall issue but I disabled the firewall and tried again and I get the same result (The website took too long to respond). 最初,我认为这是防火墙问题,但我禁用了防火墙,然后再次尝试,但得到的结果相同(该网站花了很长时间才响应)。

I am using Windows 10 on the server. 我在服务器上使用Windows 10。

Any ideas as to why this is happening? 有什么想法为什么会这样?

I figured out the answer. 我想出了答案。 I am using an EC2 instance from Amazon Web Services for a server. 我正在使用Amazon Web Services的EC2实例作为服务器。 I forgot to go into the console in AWS and open the port there too. 我忘了进入AWS的控制台,也在那里打开了端口。 I did that and now it's working as it should. 我这样做了,现在它可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM