accessing site with custom port and static ip

0

i am having a 2 GB RAM, 1 vCPU, 60 GB SSD Windows 2019 server instance with static ip,iis installed, the default port 80 is opening good, now i am having another website with port 8080, how to access the site using my lightsail instance, in the networking panel of lightsail dashboard i have allowed custom tcp port 8080 and inside the windows provided firewall access to the particular port. i am able to access a site that is hosted in port 80 externally, but a connection time out is coming for the application hosted via port 8080 . Any idea. Thanks and regards

已提問 2 年前檢視次數 292 次
1 個回答
0

Hi,

I see you are running service on port 80 and 8080 in lightsail windows instance. You are able to access the instance with port 80 but not with 8080. Please check the below steps

  1. Verify that the application is running properly and is listening on the correct network port. If the application is stopped, start it.

To accept traffic on a port, an EC2 Windows instance must host an application or service that listens on the specified port. From the EC2 Windows instance that is hosting the service, run the netstat command to display active connections and ports.

  1. Perform a port test using Telnet or Test-NetConnection locally on the instance to confirm that the port can be connected to locally.

Using a command prompt, enter the following:

telnet <Private IP> <port number>

Using Windows PowerShell, enter the following:

tnc <Private IP> -port <port number>

If the port test fails, check the antivirus and security software that runs on the instance. Set up an allow list for the application or service that uses this port on the antivirus or security software, and then test again.

  1. Repeat step 2 using a different instance. If possible, choose an instance on the same subnet. If the port test on another instance also fails, the issue might be with the Operating System (OS) or EC2 instance configuration.

Troubleshoot OS issues

Verify that Windows Firewall, and any other security software that runs on the instance, allows the required port.

  1. Also, please check you have enabled port 8080 for all ipv4 or specific ip address or only for IPv6 in Networking tab.

  2. run netstat -ab command on EC2 instance I can see services listening on above IP address/port number combination, If you see service runing on 127.0.0.1 which is not your network interface. Configure to listen to your instances private ip (10.x..) or 0.0.0.0 (all) instead

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南